Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

Create a Case without authenticating?

Posted on by 57

Smart people- I'm hoping you can help.

We are attempting to create a case, submit a case via a REST API without authenticating as a user.  Is this possible?

We are attempting to user POSTMAN to do this and am having some roadblocks.  

This is the purpose of (+) Use Postman to create cases in Dyn365 - Dynamics 365 Customer Service Forum Community Forum

Thanks

JMaye2

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create a Case without authenticating?

    Hi JMaye2,

    In case entity, 'Case Title' and 'Customer' fields are both required, so you need associate new cases with one existing Contact or Account when they are created.

    pastedimage1647840714803v1.png pastedimage1647840996374v3.png

    you can use below:

    POST {{webapiurl}}incidents

    {

    "tile":"Sample Case"

    "customerid_contact@odata.bind":"/contacts(<Record GUID>)

    }

    If you want to associate it with an account, you can use: "customerid_account@odata.bind":"/accounts(<Record GUID>)

    You can refer the following link for more details about creating a row through web api:

    Create a table row using the Web API (Microsoft Dataverse) - Power Apps | Microsoft Docs

  • JMaye2 Profile Picture
    JMaye2 57 on at
    RE: Create a Case without authenticating?

     Upon reading your links, I see that you are creating a Contact and Creating a Record.  

    Is there any guidance on Creating a Case?  

    Is a Contact or an Account required to do that?

    If so, then what are the steps in Postman to Create a Case?

    Thanks again.

  • Suggested answer
    JMaye2 Profile Picture
    JMaye2 57 on at
    RE: Create a Case without authenticating?

    - Thank you for the complete list of steps.  We have performed links 1 and 2 above.  We were struggling on the step 3 and 4 with specifically, the json or raw code and syntax  to create records, accounts, cases, etc.  

    You have provided some great information for us to work with.  I want to mark as Answer, but I don't know if it's going to work for us.  I'll come back if we decide to implement.  

    Thank you!

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create a Case without authenticating?

    Hi JMaye2,

    You need setup Postman to connect to Dynamics 365 CRM using OAuth 2.0 | Azure App Registration before creating records in postman:

    Setup Postman to connect to Dynamics 365 CRM using OAuth 2.0 | Azure App Registration | D365 Demystified 

    Set up a Postman environment (Microsoft Dataverse for Apps) - Power Apps | Microsoft Docs

    Then you can try to create records through Web API in Postman:

    Use Postman Tool To Create And Update Records In Dynamics CRM (c-sharpcorner.com)

    Use postman to Create record in Dynamics with the Web API - Nebulaa IT Solutions

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans