How to pass Outbund list information to Workflow

Hi Guys,

Help would be appreciated on this, i have a AOD campaign running from a list, what i want to do is setup a workflow and pass the list information to it e.g customer name, surname, account no, the outbound dial mode used is Preview

To access this information on my activity form i’m making use of $(workitem.fullInfo.XXXX), this works on activity forms but does not pass the information to workflow.

Workflow variable $(outbound_data) seems to contain this information in json format, is there a easier way to reference this information without using the $(outbound_data) since already presented in the activity form?, and if $(outbound_data) is the only available way, any formatting help to extract this from the $(outbound_data)?

Thanks

This is the workaround i have implemented for now to get this to work, as stated i would have thought the list fields are available and can be pulled making use of $(workitem. or other internal BP since information is already part of the routing

On my initial post i stated that this information is presented and available in the workflow is via the $(outbound_data) variable, however to extract returned fields/data in a workflow i could not find a way…maybe someone can advise

Something i did not mention is the business case for this requirement, After each call we need to post/write into the clients CRM/API endpoint the call outcomes so they keep this reference information/outcomes on their CRM

To get it to work for now

  • I’m triggering the workflow based on dispositions
  • Once in Workflow i then do a DB execute to write the fields into a DB e.g currentdatetime, GUID, interaction ID, $(outbound_data)
    -Once i have the $(outbound_data) in a table i then filter this based on required fields inside it and map this as fields
    -In the Workflow i then do a DB execute to select and return these fields as part of a recordset
    -Using these fields i can then do a Fetch URL to post the returned fields into a the clients endpoint

I would have preferred to do the formatting without a DB call, but for now this is the only option i have to get this to work

Hi @Melinyaniso_Mapi

I know this post dates back to May, but I think I might be of some help if you are still looking for a solution to access and parse the data without a database.

Would you mind posting an example of your JSON data from the $(outbound_data) variable? I’ll use it to mock up the variables that will parse or regex out the values.

You might also try to see if JSON pathing is already supported. Like this:
$(outbound_data.NameOfField)

1 Like

Hi Derek,

The contents of the $(outbound_data) variable are presented in json below.
As advised to get around this, currently i’m passing these contents to a DB field/columns and then filtering/pulling the data from it and return my results as a db execute step, direct extraction of these would be nice/quicker execution to my current workaround

{
“ani_data”:{
“proposed_ani”:“8803035831080”,
“state”:“”
},
“contact_info”:{
“addresses”:{
“0”:{
“allowed”:“yes”,
“label”:“PrimaryContact”,
“type”:“phone”,
“value”:“27633557101”
}
},
“first_name”:“Mapi”,
“full_info”:{
“CALLING_NUMBER”:“633557101”,
“FIELD_DT”:“1998-12-31 22:00:00”,
“Field_INT1”:“”,
“Field_TXT1”:“No”,
“FirstName”:“Melinyaniso”,
“HIN”:“115936376”,
“IDNumber”:“7808085831080”,
“PRIORITY”:“”,
“PrimaryContact”:“27633557101”,
“SCHD_CALL”:“1998-12-31 22:00:00”,
“SecondaryContact”:“”,
“Surname”:“Mapi”
},
“other_info”:{
“CALLING_NUMBER”:“633557101”,
“FIELD_DT”:“1998-12-31 22:00:00”,
“Field_TXT1”:“No”,
“HIN”:“115936376”,
“IDNumber”:“7808085831080”,
“SCHD_CALL”:“1998-12-31 22:00:00”
}
},
“history”:{
“0”:{
“date”:“2022-10-27 08:28:23”,
“disposition”:“”,
“disposition_name”:“”,
“notes”:“Record has been scheduled”,
“phone”:“”,
“user_id”:“”,
“user_name”:“”
}
},
“list_id”:“62921B11-AD4E-43DE-BF39-630AE56357AB”,
“list_link_id”:“F6BE34B1-8697-4407-B847-DC9491F84736”,
“list_name”:“Customer Service_AOD_Callback”,
“list_record_id”:“635a25073d523c05353f8d84”,
“out_auto_dial”:“0”,
“out_auto_dial_delay”:“0”,
“suggested_phone”:“27633557101”,
“suggested_tz”:“Africa/Johannesburg”
}