1

Entry DE has the following values

SubscriberKey EmailAddress Offer
1             a@b.com      1234
1             a@b.com      1235

I created an attribute group that ties up (many)SubscriberKey to (1)Contact Key. And

"inArguments": [
{ "SubscriberKey":"{{Contact.Attribute.Entry_DE.SubscriberKey}}"},
{ "Offer": "{{Contact.Attribute.Entry_DE.Offer}}"}
]

But the results were:

{ SubscriberKey: '1' },
{ Offer: '1234' }

{ SubscriberKey: '1' },
{ Offer: '1234' }

How can I pass 'Offer attribute dynamically?

1

Passing Journey (formerly Event) Data rather than Contact Data would help in your case. If you need to use Contact Data, you need to add a unique value to event data which can then be used to retrieve the correct value from the data extension within your custom activity (or you might use a custom entry event with this value as transaction key so lookup should work for contact data).

For Event Data the expression would look like this:

{{Event.<YOUR ENTRY EVENT's DEFINITION KEY>.Offer}}

Further reading:

| improve this answer | |
  • Hi @markus I'm using the email audience entry. Not sure how to get the entry event definition key. – sforce Jul 28 '17 at 7:49
  • Just go to your journey in Journey Builder and check out the summary of your Entry Event (either it is shown directly in the entry event on your canvas or you need to click on the header saying "ENTRY EVENT" and go to the summary page of the wizard). There you should find "EVENT DEFINITION KEY" and your key below. – Markus Slabina Jul 28 '17 at 7:52
  • I'm not using an Event Entry for the journey, I'm using the Email Audience Entry which doesnt display the definition key on summary :( – sforce Jul 28 '17 at 7:55
  • 1
    Then you could build your expression for data binding inside your custom activity using the response of "requestedInteractionDefaults" event. How this is done is described here: salesforce.stackexchange.com/a/185963/36218 – Markus Slabina Jul 28 '17 at 8:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.