Anyone got any advice on how to improve the speed of this data action?
We are using a data action with the integration named "Web Services Data Action for Azure State Service" that was installed in 2018 before I got here. We use this data action to Create Leads in MS Dynamics as callers call into the flow. This data action seems to take on average 8 seconds to run. I've got processing audio on the data action task, but there has to be a way to improve the processing.
I've worked with Salesforce engineers in other organizations where they created Apex URLs for me that must have run faster queries native inside of Salesforce. Is there anything like that for Dynamics? Or does anyone see a better way to structure this?
Appreciate any help.
Here's the Request:
{
"requestUrlTemplate": "https://dynamicspurecloudapi.azurewebsites.net/api/lead/create?lastname=${input.lastName}&phonenumber=${input.PhoneNumber}&zipcode=${input.ZipCode}&PureCloud=${input.PureCloud}&DNIS=${input.DNIS}",
"requestType": "POST",
"headers": {
"UserAgent": "PureCloudIntegrations/1.0"
},
"requestTemplate": "${input.rawRequest}"
}
The Response is basic:
{
"translationMap": {},
"translationMapDefaults": {},
"successTemplate": "{\"response\" : ${rawResult}}"
}
Here's the Input Contract:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Phone Number Request",
"description": "A phone number-based request.",
"type": "object",
"required": [
"PhoneNumber",
"ZipCode",
"lastName",
"PureCloud",
"DNIS"
],
"properties": {
"PhoneNumber": {
"type": "string",
"description": "The phone number of caller."
},
"ZipCode": {
"type": "string",
"description": "The Zip Code of caller.",
"default": "99999"
},
"lastName": {
"type": "string",
"description": "The Last Name of the Caller.",
"default": "PureCloud"
},
"PureCloud": {
"type": "boolean",
"description": "Flag to show this was a PureCloud generated lead",
"default": true
},
"DNIS": {
"type": "string",
"description": "The DNIS."
}
}
}
The Output contract is pretty basic:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "lead",
"description": "Create a lead",
"type": "object",
"properties": {}
}
#Integrations#Routing(ACD/IVR)------------------------------
Greg Beal
------------------------------