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:
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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
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
Views
Replies
Total Likes
@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 Parvesh_Parmar, He is amazing, let us know if the suggested solution helped or need few other ideas on it.
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 🙂
Views
Replies
Total Likes
@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!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies