Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

Use values from external html web resource for use in API call

Posted on by 30

Hi All

I thought this thread suitably different to my previous thread to require a separate question.

Is it possible to use data from an external HTML web resource in an API call? eg 

I have successfully created a web resource which onLoad calls an external HTML page into Dynamics and passes it the accountId in the URL. This external page uses the accountId to lookup and display further data from a separate database including contacts related to that account.

I need to allow the user to then select one of these external contacts displayed on the HTML page and, using the API, create that contact in Dynamics.

I have familiarized myself with the API and can successfully create a contact using Postman.

Can I retrieve values from the external HTML page to then use them in the API call?  Can formContext work here? Or is that only for inbuilt Dynamics elements?

example html page with table of data.

Can I give the table elements an ID which formContext can understand?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Use values from external html web resource for use in API call

    Hi dynaman365,

    I think there is no need to create a new action process. You could directly send a request with Web API to create a contact in your web resource like creating a contact using Postman.

    docs.microsoft.com/.../web-api-basic-operations-sample

  • dynaman365 Profile Picture
    dynaman365 30 on at
    RE: Use values from external html web resource for use in API call

    having watched this video I think I need to create a new action process, but this still requires I pass in values to use for each required parameter. These will be returned by the external web resource, but how to identify and pass them into the values?

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans