Hello I need work with opportunityid but I can't add to a form, so how can I get its information in a web resource (js)?
*This post is locked for comments
Hello I need work with opportunityid but I can't add to a form, so how can I get its information in a web resource (js)?
*This post is locked for comments
Thank's brother, the web resource work perfectly.
Hi.
In case this is a webresource placed on the opportunity form, you can Query the opportunityid the following way:
var opportunityid = Xrm.Page.data.entity.getId();
On HTML webresource you additional need to define var Xrm = parent.Xrm; at the top
Hth Thomas
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156