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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

SuccessCallBack Xrm.Navigation.openWebResource D365 v9

(0) ShareShare
ReportReport
Posted on by 85

Hi,

On Ribbion button click I'm opening a HTML webresource having text field. I want to send that textField values in successCallBack function to map somewhere on CRM Form.

for this I'm using  Xrm.Navigation.openWebResource(url, windowsoption) and it doesnt have callBack(). 

This is Onprem D365 V90.15

Kindly suggest, your suggestion will highly appreciated.

pastedimage1589904741413v2.png

I have the same question (0)
  • Suggested answer
    sdfasdf Profile Picture
    842 on at

    Hi,

    As far as I know, there's no supported way for you to collect data from the Web resource window (opened with openWebResource), so you can react to them with you form script. The only supported way for your Web resource's script to interact with the form is by placing the Web resource directly on the form. By doing this you can use the window.parent reference: docs.microsoft.com/.../supported-extensions

    Web resources and IFRAMEs: You can use JavaScript web resources within HTML web resources. IFRAMES configured to allow cross-site scripting, or scripts within HTML web resources included in a form may interact with the documented Xrm.Page or Xrm.Utility methods within the form via the parent reference.

    If that is not an option to you, the supported way you might want to consider is for your Web resource to use the WebAPI to update the desired attributes on the form.

    Hope it helps.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 51

#2
Martin Dráb Profile Picture

Martin Dráb 39 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 26 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans