web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Create a phonecall record with "From" and "To" fields using NiCE CXone Embedded Agent Integration

(0) ShareShare
ReportReport
Posted on by

I am trying to create a new phonecall record/acitivity on MS Dynamics CRM using NICE CXOne Agent integration.
While the phonecall record is created sucessfully, the From and To address are not updated on MSD.
The Payload on NICE CXone has all the required data to do this job.  Below is the payload sent from NiCE CXone.

//Input to Create Phoncecall record
DYNAMIC createPhoneCall
DYNAMIC createDataArray
DYNAMIC item1
item1.field = "subject"
item1.value = "{subject}"
DYNAMIC item2
item2.field = "phonenumber"
item2.value = "{ANI}"
DYNAMIC item3
item3.field = "directioncode"
item3.value = "false" // incoming
DYNAMIC item4
item4.field = "scheduledend"
item4.value = "2026-01-21T23:55:00Z"
DYNAMIC phonecallactivityArray
DYNAMIC callfrom
callfrom.EntityType = "******@odata.bind"
callfrom.participationtypemask = 1
callfrom.value = "contacts(XXXXXXXXXXXXXXXX)"
phonecallactivityArray[1] = callfrom
createPhoneCall.contact_activity_parties = phonecallactivityArray
DYNAMIC callto
callto.EntityType = "******@odata.bind"
callto.participationtypemask = 2
callto.value = "systemusers(XXXXXXXXXXXXXXXXXXXXXXXXX)"
phonecallactivityArray[2] = callto
createPhoneCall.entity = "phonecall"
ASSIGN createDataArray[1] = item1
ASSIGN createDataArray[2] = item2
ASSIGN createDataArray[3] = item3
ASSIGN createDataArray[4] = item4
CreatePhoneCall.data = createDataArray
createPhoneCall.screenPop = "true"
createPhoneCall.pinnedRecord = "true"
createPhoneCall.relatesTo = "true"
DYNAMIC createPhoneCallPayload
createPhoneCallPayload.workflowInput = createPhoneCall
ASSIGN createPhoneCallJson = "{createPhoneCallPayload.asjson()}" 
 

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 66

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 51 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 40 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans