Hi, we are about to start using webhooks to automate our leads through our ms dynamics crm. I am wanting to change variable like task subtype, tasktype etc, without creating a separate webhook for each type. How can I token in those things? Is that possible? Thanks!
Our webhook looks like this:
{
"FirstName": {{lead.First Name}},
"LastName": {{lead.Last Name}},
"EmailAddress": {{lead.Email Address}},
"PhoneNumber": {{lead.Phone Number}},
“Primary IMO”: {{lead.Primary IMO}},
"ContactID": {{lead.Contact}},
"SourceEnvironment":"prod",
"TargetEnvironment":"hub",
"TaskPriority":"Normal",
"TaskDueDate":"+2 Business Day",
"CampaignName": {{campaign.name}},
"CampaignID":{{campaign.id}},
"NewContactOwner":"RoundRobin",
"TaskType":"Annuity",
"TaskSubtype":"quote",
"TaskDescription": [
"FirstName",
"LastName",
"EmailAddress",
"PhoneNumber",
“PrimaryIMO”,
"CampaignName"
]
}
Solved! Go to Solution.
You can use Program-level {{my.tokens}} in the payload.