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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Add Phonecall record in CRM 2011 using Rest

(0) ShareShare
ReportReport
Posted on by 20

How do I add a PhoneCall record with phonecll_activity_parties using Rest Api version /XRMServices/2011/OrganizationData.svc/PhoneCallSet in JavaScript?


Json Object: {
    "Subject": "Sample Phone Call 1",
    "PhoneNumber": "123456789",
    "Description" "This is the description of the sample 1 phonecall"
    "RegardingObjectId":
    {
        "Id": "x0000000-fe50-e411-axxx-000d3a34a0aa",
        "LogicalName": "account",
        "Name": "Zxc_Peterg"
    },
    "ActualDurationMinutes": 10,
    "DirectionCode": true,
    "Phonecall_Activity_Parties": [
        {??? }
    ]
}

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    I don't it's doable using that endpoint. You should take a look on SOAP endpoint.

  • Luciano Navomi Profile Picture
    20 on at

    I'm sorry, let me try to elaborate the question again and more appropriately:

    I work with middleware that uses SOAP to create and retrieve records in other entities (Accounts, Contacts and Incidents for example). But I need to create Phonecalls in this same solution (using SOAP) and I don't know how to add the data to the phonecll_activity_parties field because I only found references to how to do it using webapi, but I need to use SOAP.

    How can I do this?

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    To get proper soap you can use Soap Logger - carldesouza.com/.../

    Here are examples how you can use it - docs.microsoft.com/.../gg594434(v=crm.7)

  • cloflyMao Profile Picture
    25,210 on at

    Hi Luciano,

    You can create the SOAP format request with CRM Rest Builder:

    pastedimage1576575423267v1.png

    pastedimage1576575452481v2.png

    However, I didn't find Phonecall_Activity_Parties field in OOB phone call activity,

    would it be a custom field created by yourself?

    Regards,

    Clofly

  • Luciano Navomi Profile Picture
    20 on at

    In first, thanks @Andrew Butenko and @cloflyMao

    Because I'm not very familiar with nomenclatures, I'll try to simplify so that I can be exact in what I already have and what I need:
    Using Postman, I can insert new Phonecalls using:

    POST request
    URL: <url> /XRMServices/2011/OrganizationData.svc/PhoneCallSet
    Authorization: OAuth 2.0 Bearer {{accesstoken}}
    Headers:
      Content-Type: application / json
      Accept: application / json
     Body: raw
     {
        "Subject": "Sample Phone Call",
        "PhoneNumber": "123456789",
        "Description": "This is the description of the phonecall SOAP",
        "RegardingObjectId":
        {
            "Id": "x0000000-xx40-e911-x000-000d3a00a0xx",
            "LogicalName": "account",
            "Name": "Test_Name"
        },
        "ActualDurationMinutes": 10,
        "DirectionCode": true
    }

    This request is returning `Status 201 Created` and it's working fine.
    What I need is inserting values ​​into the field (One-To-Many Relationships) phonecall_activity_parties (docs.microsoft.com/.../phonecall BKMK_phonecall_activity_parties)

    I followed the template presented here community.dynamics.com/.../create-custom-phone-call-entity-through-scripting and succeeded but using Webapi . However, the current solution doesn't run with webapi, so I need help here.

    Thanks in advance!

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Luciano,

    You will not be able to insert activity parties using OrganizationData.svc for phonecalls. The only way for you is usage of Organization.svc and I have already provided references to play with it.

    Good luck.

  • Luciano Navomi Profile Picture
    20 on at

    Andrew,

    Got it! Thank you very much for the information, again!

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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans