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

Community site session details

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

API for 365 customer service to pull and answer tickets

(4) ShareShare
ReportReport
Posted on by 14
Hi,
I am new to Microsoft 365 Dynamics. I want to create an integration for a third party company to pull and answer tickets from 365 dynamics customer service. 
Where's the API documentation for MSD customer service? I see one for customer engagement but not for customer service

It seems a bit confusing so looking for some guidanace. 
I have the same question (0)
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    7,827 Super User 2025 Season 2 on at
    API for 365 customer service to pull and answer tickets
    Hello CU12040032-0,
     

    You're right, the terminology can be a bit overlapping in the Microsoft Dynamics 365 ecosystem. The good news is that the same underlying Web API used for Dynamics 365 Customer Engagement (CRM) is also the primary API for interacting with data in Dynamics 365 Customer Service.

    Think of it this way: Dynamics 365 Customer Service is a model-driven app built on the Power Platform, just like Sales, Marketing, and other "Customer Engagement" modules. They all share the same core data platform (Dataverse, formerly Common Data Service) and therefore the same API for programmatic access.

    API Documentation for Dynamics 365 Customer Service (using the Web API):

    The official documentation you should be referring to is indeed the Microsoft Dynamics 365 Customer Engagement (on-premises) Web API Reference. This documentation covers all the CRUD (Create, Read, Update, Delete) operations and other actions you can perform on entities within the Dataverse, which includes all the Customer Service-specific entities like Cases (Incidents), Queues, Agents, etc.

    You can find the latest documentation here:

    Key Areas within the Documentation for Your Integration:

    Guidance for Your Integration:

    1. Authentication Setup: Start by registering your third-party application in Azure AD and configuring the necessary permissions to access your Dynamics 365 environment.

    2. Identify Required Entities and Attributes: Determine which entities (primarily incident for Cases) and attributes your integration needs to interact with (e.g., ticketnumber, title, description, statuscode, ownerid, customerid, createdon, modifiedon).

    3. Implement Data Pulling Logic: Use the RetrieveMultiple operation with appropriate OData $filter clauses to fetch relevant tickets based on criteria like status (e.g., new, active), assignment, or creation date. Consider using pagination ($top and $skiptoken) for handling large volumes of data.

    4. Implement Data Answering/Updating Logic: Use the Update operation to send updates back to Dynamics 365 when the third-party system answers or modifies a ticket. Ensure you are sending the correct entity ID and the attributes you want to update in the correct format.

    5. Consider Real-time Updates (Optional but Recommended): For a more seamless integration, explore using Webhooks or Azure Service Bus integration to receive real-time notifications when tickets are created or updated in Dynamics 365, instead of constantly polling the API.

    6. Error Handling and Logging: Implement robust error handling and logging mechanisms in your integration to track issues and ensure data consistency.

    7. Rate Limiting: Be aware of the Dynamics 365 Web API's rate limits to avoid being throttled. Design your integration to handle potential throttling scenarios gracefully (e.g., using exponential backoff).

    8.  

    In summary, while you might not find specific API documentation labeled "Dynamics 365 Customer Service API," the Dynamics 365 Customer Engagement Web API is the correct resource. It provides all the necessary tools to pull and answer tickets within the Customer Service module. Focus on the authentication, querying, and updating sections of the documentation, and consider exploring real-time integration options for a more efficient solution. Good luck with your integration!

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak
  • Verified answer
    Holly Huffman Profile Picture
    6,518 Super User 2025 Season 2 on at
    API for 365 customer service to pull and answer tickets
    Good morning, afternoon, or evening :) depending on your location!
     
    To integrate with Dynamics 365 Customer Service and pull or answer tickets, you can use the Dataverse Web API, which is part of the broader Dynamics 365 Customer Engagement APIs. These APIs allow you to interact with entities like cases (tickets) and perform operations such as querying, updating, and creating records.
     
    Key Resources for API Documentation:
    1. Dataverse Web API: This is the primary API for interacting with Dynamics 365 entities, including Customer Service. You can find detailed documentation here.
    2. REST API Overview: Learn about the REST APIs available for Dynamics 365 Customer Engagement, including Customer Service, here.
    3. Web API Samples: Explore code samples for using the Web API with various programming languages here.
    Steps to Get Started:
    1. Authenticate: Use OAuth 2.0 to authenticate your application with Dynamics 365.
    2. Query Tickets: Use the Web API to query the incident entity, which represents cases or tickets in Customer Service.
    3. Update Tickets: Use the API to update ticket statuses, assign users, or add notes.
    4. Answer Tickets: Automate responses by creating activities (e.g., emails or tasks) linked to the ticket.
     
    Hope this helps!

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
DAnny3211 Profile Picture

DAnny3211 359

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 77 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans