I am working on custom activity in Journey builder where, I need to access the values of the fields from Data Extension as inArguments
. I read about data binding from here and used the below syntax to access data extension field values:
{{Contact.Attribute.DE_NAME.FirstName}}
But, I receive empty string in the FirstName
field and I am sure there is value present for this field in DE.
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": [
{
"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"=>[{"firstName"=>""}, {"lastName"=>""}, {"emailAddress"=>"testemail+62@gmail.com"}]
Is anything I am doing wrong, please help me.
Thanks..
Contact Key
.