Use of Sub-item option inside Query activity | Community
Skip to main content
Level 3
Feb 5, 2018 8:06 PM UTC
Solved

Use of Sub-item option inside Query activity

Can anyone give an example of how one would use a sub-item inside the Add data/edit additional data option the query activity?

As per Adobe's documentation, the add sub-item option lets you attach computed data to the collection. This lets you select the additional data from the collection or define aggregate calculations on collection elements.

Can anyone give use case examples?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Amit_Kumar
Amit_KumarAccepted solution
Level 10
Feb 5, 2018 10:09 PM UTC

Hi,

Most of the time when you define aggregate calculations you have to disable the primary key addition to use group by clause otherwise group by will not work as all rows will be unique because of primary key so we create aggregate and use a 1-1 link to add this back to main target query. Now you have everything i one query and you are all set for the final send out.

for use case please refer to this link:Using aggregates

Regards,

Amit

3 replies

Level 3
Feb 9, 2018 9:59 PM UTC

Thank you so much. Will check it out for sure, and post any additional questions I may have.

Translate
florentlb
Level 10
Feb 9, 2018 1:05 PM UTC

Hi,

In addition to Amit's comment, you can check this example here: Synchronizing audiences​ (in the context of sharing lists with ACS, but the principles remain the same for additional data)

Florent

Translate
Amit_Kumar
Amit_KumarAccepted solution
Level 10
Feb 5, 2018 10:09 PM UTC

Hi,

Most of the time when you define aggregate calculations you have to disable the primary key addition to use group by clause otherwise group by will not work as all rows will be unique because of primary key so we create aggregate and use a 1-1 link to add this back to main target query. Now you have everything i one query and you are all set for the final send out.

for use case please refer to this link:Using aggregates

Regards,

Amit

Translate