Passing variable from external contact's custom field

Hi there

I have created a custom field in external contact which is called "ssn" and the key field is "ssn_text". Can I pass this variable into script?

What I am trying to do is having a web page (iframe) which uses ssn as a parameter. Example url would be: https://externalwebsite.com/customerinformation.html?ssn={{ssn}}

When customer makes an inbound call, the IFRAME will load the information about the customer from an external system.

Thanks in advanced

Hi @arnorhaux
You can pass a variable into a script by specifying it as an input variable in the script. I tested adding a custom field to an external contact and verified that the custom field comes back in the API response to GET /api/v2/externalcontacts/contacts. So you should be able to retrieve that data using either a data action or the Get External Contact action in architect, and pass the custom field in that way

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.