I am working on custom activity in Journey builder where, I need to access the values of the fields from Subscriber profile attribute as inArguments. I read about data binding from here and used the below syntax to access profile attribute values:
{{Contact.Attribute.Persona.sub_id}} But, I receive empty string in the sub_id field and I am sure there is value present for this field in Subscriber.
config.json
{ "workflowApiVersion": "1.1", "metaData": { "icon": "img/img_1.png", "iconSmall": "img/img_2.png", "category": "message" }, "type": "REST", "lang": { "en-US": { "name": "Test custom activity", "description": "Testing custom activity" } }, "arguments": { "execute": { "inArguments": [ { "sub_id": "{{Contact.Attribute.Persona.sub_id}}" }, { "firstName": "{{Contact.Attribute.DE_NAME.FirstName}}" }, { "lastName": "{{Contact.Attribute.DE_NAME.LastName}}" }, { "emailAddress": "{{Contact.Default.Email}}" } ], "outArguments": [], "url": "https://xyz.ngrok.io/activities/execute", "verb": "POST", "body": "", "header": "", "format": "json", "useJwt": false, "timeout": 10000 } }, "configurationArguments": { "applicationExtensionKey": "test-activity-custm-wwq", "defaults": { "activity": "0" }, "save": { "url": "https://xyz.ngrok.io/activities/save", "useJwt": false }, "publish": { "url": "https://xyz.ngrok.io/activities/publish", "verb": "POST", "body": "", "useJwt": false }, "validate": { "url": "https://xyz.ngrok.io/activities/validate", "verb": "POST", "body": "", "useJwt": false }, "stop": { "url": "https://xyz.ngrok.io/activities/stop", "useJwt": false } }, "wizardSteps": [ { "label": "Select anything", "key": "1" }, { "label": "Confirm Settings", "key": "2" }, { "label": "Save Settings", "key": "3", "active": false } ], "userInterfaces": { "configModal": { "height": 250, "width": 600, "fullscreen": false } } } Received inArguments in Execute API :
{"inArguments"=>[{"sub_id"=>""}, {"firstName"=>"Test"}, {"lastName"=>"Name"}, {"emailAddress"=>"[email protected]"}] Also, I have tried accessing the profile attribute values as below:
{{Contact.Default.sub_id}} But, it display the below error in the Journey history status column:
Failed - ExactTarget.JourneyBuilder.Activities.RestActivity.execute: Error binding data bound member.
Is anything I am doing wrong, please help me.
Thanks.
sub_idfor each Contact?