audience name as output in custom destination connector
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: