1

We have created a custom activity that successfully sends a POST call to the relevant endpoint. But we can't get it to bind data from the Journey DE.

Have seen this:

{{Event.my-custom-product-trigger-key.ProductId}}

Here: Stack Exchange post

Is that the right approach? How do I fund the custom-product-trigger-key?

1 Answer 1

2

In order to find your event definition key inspect journey payload using dev tools of your browser (network tab):

enter image description here

Once you have eventDefinitionKey (in my example: DEAudience-3ab446ce-0427-deea-6871-033f3327ef9c) your final result will look like:

{{Event.DEAudience-3ab446ce-0427-deea-6871-033f3327ef9c.ProductId}}

Other approach is to develop something generic, check my example:

https://salesforce.stackexchange.com/a/221888/47806

2
  • Thanks! is there a way to get the event definition key dynamically with JS/ AMPscript? so that we aren't bound to the same DE.
    – yoni349
    Jul 12, 2020 at 7:16
  • I have shared link to generic solution in my answer, there you can find and extract all event source fields. Also you can try to use requestTriggerEventDefinition or requestInteraction postmonger events to find eventDefinitionKey. developer.salesforce.com/docs/… Jul 12, 2020 at 17:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .