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,...
Answered

How to create a Restful URL which creates the phone call activity in CRM 2016

(0) ShareShare
ReportReport
Posted on by 30

Can someone guide me with step by step how to create Restful URL which creates the phone call activity in CRM 2016 ?

I am new to this, kindly guide me.

I have the same question (0)
  • Verified answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    CRM OOB provides odata endpoint for CRM 2016. You can use below managed solution to create resturl.

    github.com/.../releases

    Download and Install managed solution in your crm instance. Then create request which can be used from CRM.

    If you are looking for restful service which has to be available publicly on the internet then you will have you create custom Rest web service and host so that it will be avialable on the internet.

    docs.microsoft.com/.../build-restful-apis-with-aspnet-web-api

    Odata 2011 create Phonecall activity code

    var entity = {};

    entity.DirectionCode = true;

    entity.Subject = "Call with Test customer";

    entity.RegardingObjectId = {

       Id: "00000000-0000-0000-0000-00000001",

       LogicalName: "lead"

    };

    entity.PhoneNumber = "1234567890";

    var req = new XMLHttpRequest();

    req.open("POST", encodeURI(Xrm.Page.context.getClientUrl() + "/XRMServices/2011/OrganizationData.svc/PhoneCallSet"), true);

    req.setRequestHeader("Accept", "application/json");

    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");

    req.onreadystatechange = function() {

       if (this.readyState === 4) {

           this.onreadystatechange = null;

           if (this.status === 201) {

               var result = JSON.parse(this.responseText).d;

               var newEntityId = result.PhoneCallId;

           } else {

               Xrm.Utility.alertDialog(this.statusText);

           }

       }

    };

    req.send(JSON.stringify(entity));

    If found helpful, Please mark my answer verified.

  • HrushiReddy Profile Picture
    30 on at

    Hi Bipin,

    Thanks for your immediate response, can you send me the step by step where to create it and how to do it please.

    Regards,

    Bravo

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 184 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 138

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans