Salesforce Marketing Cloud Amscript JSON

时间:2018-12-12 11:02:57

标签: json salesforce-marketing-cloud

在电子邮件的抄本中,我想在特定条件下侵犯jounrey的身份

所以我使用了交互事件作为旅程输入源。

这是我的网址: 设置@jm_url =“ https://mcmvdgqj9nsn7jh20djws488y9fq.rest.marketingcloudapis.com/interaction/v1/events

这是我的旅程代码: * set @returnCode = HTTPPOST(@jm_url,“ application / json”,@ jm_payload,@ response,“ Authorization”,@accesstokenandauth,“ Accept-Charset”,“ utf-8”)

现在jm_payload是我遇到问题的地方:

当我使用硬编码消息时,一切正常: '{“ ContactKey”:“ 005”,“ EventDefinitionKey”:“ InvokeVoucherABCD”,“ Data”:{“ FirstName”:“ Shekhar”,“ Email”:“ partner.chandrashekhar.dautpure@ABCD.com”,“ Type” :“空”,“市场”:“ NLD”,“ ContactId”:“ 001”,“ CampiagnName”:“母亲节”,“ CampiagnCode”:“ 009”,“阈值”:“ 10”}}''

但是上述值实际上是从另一个DE中获取的,并存储在变量中

因此,在最终代码中,我需要参数化jm_payload: 设置@jm_payload ='{“ ContactKey”:@ notificationcontactkey,“ EventDefinitionKey”:“ InvokeVoucherABD”,“ Data”:{“ FirstName”:“ Shekhar”,“ Email”:“ partner.chandrashekhar.dautpure@ABCD.com”, “类型”:“空”,“市场”:“ NLD”,“ ContactId”:CONCAT(“”“,@ notificationcontactkey,”“”),“ CampiagnName”:“母亲节”,“ CampiagnCode”:“ 009” ,“阈值”:“ 10”}}'

但这不起作用,关于我如何参数化我的jm_payload的任何线索

0 个答案:

没有答案