Expand my Community achievements bar.

Join Adobe Journey Optimizer product experts for a live Ask Me Anything on June 25th at 8 AM PT!
SOLVED

Query all members of a audience

Avatar

Level 1

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 1

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 6

Hi @DiegoMo5 ,

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