Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

audience name as output in custom destination connector

Avatar

Level 2

hi, are there any bright spraks out there who know how to include the audience name when creating a custom streaming destination?

 

I see the template in the destination server uses the segmentmembership.ups object , so as an example:

 

{%- for segment in profile.segmentMembership.ups | added %}
{ "Email": "{{ identity.id }}",
"SegmentId": "{{ segment.key }}",
"Status": "{{ segment.value.status }}",
"QualTime": "{{ segment.value.lastQualificationTime }}"
}
{%- endfor %}

 

but I'm really looking to do is rather use the more useful audience name as opposed to the guid id


{ "Email": "{{ identity.id }}",
"SegmentName": "{{ The name of the segment }}",
"Status": "{{ segment.value.status }}",
"QualTime": "{{ segment.value.lastQualificationTime }}"
}

 

so looking at the profile api fior entities, i see as part of the payload:

"segmentMembership": {
                "ups": {
                    "61453783-8d59-4153-b202-d05ee": {
                        "status": "realized",
                        "lastQualificationTime": "2025-03-04T08:06:03Z"
                    },
 
which makes sense, but how do i link the name of the actual segment / audience in the destination server template?
 
hoping for enlightment 🙂
Marc

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

5 Replies

Avatar

Community Advisor

@marc_stowe_za 

1. You can transform template and use destination.namespaceSegmentNames, to adds a lookup of segment names for each segmentMembership.ups GUID in the payload sent to your destination. 

How to Enable - in you destination server configuration set the flag as true

2. on UI by configuring destination, edit "File name" and then Append settings to enable "Segment name". How to append various settings

 

Avatar

Level 2

Hi

 

thanks for the reply. I need to stress this is a streaming connection, so can't use the UI to influence a filename, it needs to be embedded in the json object.

 

for option 1 , are you saying that I would need to build a decode type of lookup where I say something like guid xyz = audience name 1? 

 

regards

Avatar

Community Advisor

@marc_stowe_za Nope! you don't need to create a lookup table to the destination with segment id and segment name (However, that is another option). I see you also working on it (another thread) with 

Avatar

Level 2

hi, thanks, yes I'm chatting to Parvesh as well but unfortunately he's not built one of these connectors so we are both being led by the documentation as the moment.

 

Happy i dont have to build the lookup table, but whats getting to me here is that in the destination endpoint i set the audience name on as opposed to id but it does not pull through to the http template in the destination server config, which means i'm clearly referencing it incorrectly. Followed all the docs but to no avail. I've also raised a support ticket so lets see where that goes 🙂

Avatar

Administrator

@marc_stowe_za Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!



Kautuk Sahni