Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

WebAPI to get the position GUID

Posted on by 4,125

Hi,

I am new to CRM, and I know there is a WebAPI I can get entity information.

https://msdn.microsoft.com/en-us/library/mt607871.aspx#bkmk_basicRetrieve

Do you know if I want to get the position entity GUID, is there any example I can use?

Thanks,

*This post is locked for comments

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: WebAPI to get the position GUID

    Hi Yuji,

    Try using the following code.

    var entityUri = this.getResponseHeader("OData-EntityId");
    var ID = accountUri.substr(accountUri.length - 38).substring(1, 37); //get only GUID

    See: http://himbap.com/blog/?p=2035

    Hope this helps.

  • Suggested answer
    Rajat Awasthi Profile Picture
    Rajat Awasthi 675 on at
    RE: WebAPI to get the position GUID

    Hi Yuji ,

    You can use CRM Rest Builder to generate code using WEB Api. That's the easiest and convinient way.

    github.com/.../CRMRESTBuilder

    Please mark answer as verified if this help you!!

  • Suggested answer
    Mihir Maruti Kadam Profile Picture
    Mihir Maruti Kadam 700 on at
    RE: WebAPI to get the position GUID

    Can you please elaborate the question? You want guid of current entity?

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans