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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

WebAPI - How to insert "agent name" while creating a phonecall timeline record?

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I am working on an integration project wherein I am trying to create a phonecall record on behalf of an agent in dynamics CRM through WebAPI. To insert the agent name in the record which entity/activity/table should be used? I am using the accounts entity to create a record as below

/api/data/v9.0/accounts?$select=name,telephone1,address1_composite,description.
Please refer the attached screenshot.
Your response is much appreciated.
Thanks,
Avi
4571.unnamed.png
  • Esteban Coto Alfaro Profile Picture
    Microsoft Employee on at

    Hello, in this case you have to considerate that "Agent Name" is a look up field. Here I attach the documentation about how to associate new table records to existing table records: docs.microsoft.com/.../createrecord

    Here is a similar case presented that could help: community.dynamics.com/.../how-to-create-record-with-lookup-field-using-web-api

    Also I am going to attach documentation about how to associate new entities to existing entities: docs.microsoft.com/.../create-entity-web-api

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

  • AviG Profile Picture
    5 on at

    Thank you very much, Esteban!

    Yes sure, I'll accept your post after trying out the solution.

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

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 91 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 71

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans