3

Background

I am developing a simple custom activity for JB. There are lots of gotchas apparently. I have read the following sources from cover to cover and still cannot make it all together:

How Data Binding Works

Accessing Data Extension field values

Accessing subscriber profile attribute values

I need to access the values of the fields from Data Extension as inArguments. This Data Extension is linked to the Journey Entry Event. Hence I should be accessing entry event attributes basically.

I created a journey, added an Entry Source of type "Contact Data Entry Event". Data Extension I am trying to pull data from is linked to this Entry Event.

Entry Source Name: TEST_CUSTOM_EVENT_AUTOMATION_STUDIO

enter image description here

enter image description here

Data Extension External Key: TEST_CUSTOM_EVENT_DE

Data Extension field name: FirstName

enter image description here

config.json:

     "arguments": {
         "execute": {
            "inArguments": [
                 { "Contact.Key":"{{Contact.Key}}" },
                 { "FirstName":"

{{Event.TEST_CUSTOM_EVENT_AUTOMATION_STUDIO.FirstName}}"
 },
                 { "FirstName":"Test" }
             ],
             "outArguments": [
             ],
             "url": "https://zapier-jb-test.herokuapp.com/jb/activities/send-to-zapier/execute/",
             "verb": "POST",
             "body": "",
             "header": "",
             "format": "json",
             "useJwt": false,
             "timeout": 10000
         }
     },

Received inArguments in Execute API :

{  inArguments: [ 
    { 'Contact.Key': 'customevent1' },
    { FirstName: '' },
    { FirstName: 'Test' },
], ...}

Question

How can I access these data?

2

I found where the bug was. I should have used the "real" EVENT DEFINITION KEY instead of its NAME. When you are in a journey you won't see this value. For this you need to go to Entry Sources and find your Event there.

enter image description here

So now it works!

config.json:

     "arguments": {
         "execute": {
            "inArguments": [
                 { "Contact.Key":"{{Contact.Key}}" },
                 { "FirstName":"{{Event.ContactEvent-72af1529-1d7d-821e-2a08-34fb5068561d.FirstName}}" }
             ],
             "outArguments": [
             ],
             "url": "https://zapier-jb-test.herokuapp.com/jb/activities/send-to-zapier/execute/",
             "verb": "POST",
             "body": "",
             "header": "",
             "format": "json",
             "useJwt": false,
             "timeout": 10000
         }
     },

And the API Output:

{  inArguments: [ 
    { 'Contact.Key': 'customevent1' },
    { FirstName: 'Foo1' }
], ...}
  • Can you please tell me how to get the ENTRY EVENT DEFINITION KEY? I can't able to find it in my summary of the entry source audience? – Gokul M Feb 15 '18 at 15:08

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.