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 Service forum

Api to Describe the fields of incident in dynamics.

(0) ShareShare
ReportReport
Posted on by 25

Hey! 

I am using `https://[org url]/api/data/v9.0/incidents` . - to get all the fields of the case in dynamics. 

But this just list the fields, it doesn't tell, what type of fields they are, if they are multi picklist, boolean or string. 

So i want to return all the fields of the case, with there type and any other information if provided. 

Can someone please help me with the api?

Thanks. :)

Categories:
  • Suggested answer
    Pawar Pravin Profile Picture
    5,237 on at

    Himani,

    In your case you want to retrieve fields and information related information. I would suggest you to retrieve metadata.

    Please refer below url for reference:

    stackoverflow.com/.../retrieving-entity-metadata-using-web-api

    www.inogic.com/.../

  • RajarajanS Profile Picture
    Microsoft Employee on at

    Hello,

    You can try using the following call:

    "https://[org url]/api/data/v9.0/EntityDefinitions(LogicalName='incident')?$select=LogicalName&$expand=Attributes"

    This call should be able to return you all the attributes and their types as well.

    Also you can refer to the articles:

    docs.microsoft.com/.../use-web-api-metadata

    docs.microsoft.com/.../query-metadata-web-api

    Hope this helps

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums

    Regards,

    Raj

  • Suggested answer
    Pawar Pravin Profile Picture
    5,237 on at

    Please refer below url:

    Please replace <CRMURL> with org url.

    https://<CRMURL>/api/data/v9.0/EntityDefinitions(LogicalName='account')/Attributes/

    pastedimage1570028519077v1.png

    Here is the place where you will get all metadata info.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans