Skip to main content

Notifications

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": [
        {??? }
    ]
}

  • Luciano Navomi Profile Picture
    20 on at
    RE: Add Phonecall record in CRM 2011 using Rest

    Andrew,

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

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Add Phonecall record in CRM 2011 using Rest

    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
    RE: Add Phonecall record in CRM 2011 using Rest

    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!

  • cloflyMao Profile Picture
    25,208 on at
    RE: Add Phonecall record in CRM 2011 using Rest

    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

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Add Phonecall record in CRM 2011 using Rest

    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)

  • Luciano Navomi Profile Picture
    20 on at
    RE: Add Phonecall record in CRM 2011 using Rest

    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
    RE: Add Phonecall record in CRM 2011 using Rest

    Hello,

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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 95

Overall leaderboard

Product updates

Dynamics 365 release plans