Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

API calls in CRM online

Posted on by Microsoft Employee

I am new to CRM online. I've done some API work in the past, but it was a couple years ago. Still, I got the API working, no errors (according to Postman). What I need though is for it to return just one part of the jSON object. I'm working with zillow, trying to get the "zestimate" to show on the contact form. So I guess I have two questions, ALL information is helpful. I don't understand where to put the code for the API. Web resource?? Additionally, how do I get just the zestimate? No other data necessary, though if all I need to do is format the data so only the zestimate shows, that's fine of course. Do I use CSS for that? I have some code which I'll post below so you can get an understanding of what I've done so far/where I'm at with it. I feel like I'm missing how to connect the dots, it's very frustrating.

zillow_5F00_HTML.PNG

^HTML for project

zillow_5F00_js.PNG

^JS for project

zillow_5F00_jSONquestion.PNG

In this ^ picture, should that be "response.amount"?

zillow_5F00_amount.PNG

^ This is the only thing I need from the output.

Please ask for clarification if needed.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: API calls in CRM online

    That helps in the creation department, thank you. But I still need to know how to get the correct information to display within CRM.. Any ideas?

  • gdas Profile Picture
    gdas 50,085 on at
    RE: API calls in CRM online

    Hi ,

    Yes you should create all your js and HTML file as web resource inside dynamics 365 by selecting the type of resource . And then add the html  in the form .Here is some references you can follow.

    docs.microsoft.com/.../create-edit-web-resources

    community.dynamics.com/.../creating-html-web-resource-to-show-image-attached-in-notes-part-2

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