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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How can I specify the specific formID for a contact in the Health 365 CRM Portal?

(0) ShareShare
ReportReport
Posted on by 14

Hi folks,

So just wanted to ask a quick question about retrieving a contact's specific form-type when calling the Dynamics Web API from the root url <name>.crm.dynamics.com/api/data/v9.1

However, in the Health 365 portal, contacts can be viewed from a couple of different views - as "patients" in Patient 360, as "practitioners" in Physician 360, or just as a plain old Contact (see image below)

pastedimage1564063197382v1.png

I want to make a Get request to this contact from the Physician 360 view - because there are values in that view that are not accessible when calling just as a simple contact.

When I look at the URL in the web browser when in this view, I noticed that the value for "formid" changes depending on the different views described above. (See URL Below)

https://___crm.dynamics.com/main.aspx?appid=_____________&pagetype=entityrecord&etn=contact&id=#####-######-#####-####d&formid=e9486f9f-8013-4a53-9c85-c9f59515a185

When I want to find a specific contact, just as a contact, I call https://______.crm.dynamics.com/api/data/v9.1/contacts(5b1######-#######-######)

My question is simply this - how can I make a REST Call (Get request) like the link above for this contact but also pass that form id in with it?

Thank you so much for any and all feedback!!

*This post is locked for comments

I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    Hi partner,

    You could try call this client API "Xrm.WebApi.retrieveRecord" to get contact fields.

    I retrieved more fields from this than call Org URL with entity id directly.

    Entity: Contact.

    Available fields in Customization: 192

    Fields from Org URL directly: 200.

    Fields from WebAPI call: 246.

    Any Customization field: No

    Sample code:

    Xrm.WebApi.retrieveRecord(

    Xrm.Page.data.entity.getEntityName(), Xrm.Page.data.entity.getId().replace('{','').replace('}','')).

    then(

        function success(result) {
            JSON.stringify(result);
        },
        function (error) {
            console.log(error.message);
        }
    );

    Regards,

    Clofly

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans