Expand my Community achievements bar.

Never miss an update of the Adobe Journey Optimizer Community Lens! Subscribe now to get the latest updates, insights, and highlights delivered straight to your inbox every time a new edition drops.
SOLVED

Query all members of a audience

Avatar

Level 2

Hello there, 

Any way to query all the members from one particular audience?
I know just to check if a members is part of one particular audience and, furthermore the sample data is not enough

 

thanks for the help!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@DiegoMo5 Use this query and modify it based on your needs.

 

select to_json(identityMap['email']['id']), to_json(segmentMembership['ups']['<<segment_id>>'])
from profile_snapshot_export_<<snapshot_id>>
where segmentMembership['ups']['<<segment_id>>']['status'] in ('existing', 'realized', 'exited')

Thanks, Sathees

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

@DiegoMo5 Use this query and modify it based on your needs.

 

select to_json(identityMap['email']['id']), to_json(segmentMembership['ups']['<<segment_id>>'])
from profile_snapshot_export_<<snapshot_id>>
where segmentMembership['ups']['<<segment_id>>']['status'] in ('existing', 'realized', 'exited')

Thanks, Sathees

Avatar

Level 2

Thank you very much @SatheeskannaK

It is working as expected, the existence of the table "profile_snapshot_export" was the piece of cake

query = "SHOW TABLES LIKE 'profile_snapshot_export_%';"
 

Avatar

Level 8

Hi @DiegoMo5 ,

Agree with @SatheeskannaK 's response. For more information, you can visit https://experienceleague.adobe.com/en/docs/experience-platform/query/home