pcguy | 2018-02-19 22:29:27 UTC | #1
Hi Guys,
Is it possible to set the inin-outbound-id field to the same value as the 'Unique Identifier Field', or preset inin-outbound-id to a unique value of one's choice when adding an outbound contact to a list through the API?:
/api/v2/outbound/contactlists/{contactListId}/contacts
I noticed that no matter what I'm trying, I can't seem to set the inin-outbound-id value to the unique value of my choice, preferably the Salesforce ID of the records we are working with and adding to dialer lists.
I'd like to make the value of inin-outbound-id set to the Salesforce record ID rather than the system-generated ID Purecloud creates. This will allow me to update the record From Salesforce to Purecloud just by knowing it's SalesforceID.
Desired: /api/v2/outbound/contactlists/{contactListId}/contacts/00Q2a000001BhLm <--- inin-outbound-id is set to a Salesforce ID on record creation so i can easily reference and update records from Salesforce.
Undesired: /api/v2/outbound/contactlists/{contactListId}/contacts/2ad2f6386fd64b1c0ea3cab2abf4fb10 <-- Purecloud ID that Salesforce doesn't know about and can't easily reference/update
Here is some Json I'm using to try to get inin-outbound-id to be set to the Salesforce record ID when adding outbound contacts to a list through the API:
[{ "name": "John Doe", "contactListId": "71b1fcb2-40a8-4b26-8638-b445e26324e2", "inin-outbound-id ": "00Q2a000001BhKUEA0", "data": { "inin-outbound-id": "00Q2a000001BhKUEA0", "Id": "00Q2a000001BhKUEA0", "FirstName": "John", "LastName": "Doe", "Phone": "(702) 555-1212", "MobilePhone": "null", "Street": "1234 cloudy ave", "City": "las vegas", "State": "NV", "PostalCode": "89120", "Country": "null", "DoNotCall": "false", "Email": "test@gmail.com", "SF_URLPop": "00Q2a000001BhKUEA0", "Salutation": "", "Title": "null", "timezone": "", "CallRecordLastAttempt-Mobile": "", "CallRecordLastResult-Mobile": "", "CallRecordLastAgentWrapup-Mobile": "", "Callable-Mobile": "", "CallRecordLastAttempt-Other Phone": "", "CallRecordLastResult-Other Phone": "", "CallRecordLastAgentWrapup-Other Phone": "", "Callable-Other Phone": "" }, "callable": true, "phoneNumberStatus": {} }]
I also have SF_URLPop set to the unique identifier field column. I was hoping maybe that would be assigned to inin-outbound-id when adding an outbound contact to a PC list through the API.
Also, I noticed I can set inin-outbound-id to a pre-set value when I do a manual list import (non API) in Purecloud. This is great for existing data sets, but as records are added to Purecloud I'd like to keep using Salesforce ID's as Purecloud's internal unique identifier value for PC record updates.
Any advice on how I can set inin-outbound-id to a Salesforce ID when adding an outbound contact to a Purecloud list through the API?
Thank you
anon28066628 | 2018-02-20 14:52:54 UTC | #2
Hi pcguy, you need to use "id" in object top-most context (with 'name', contactListId, etc.). See here: https://developer.mypurecloud.com/forum/t/able-to-set-id-using-api-to-add-contacts-to-list/2452
The reference case for updating the documentation on this is CD-5359.
pcguy | 2018-02-20 17:24:24 UTC | #3
Most excellent. Simply passing id worked. Thank you Smith_Rj!
system | 2018-03-23 17:24:35 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 2517