0

I have a custom HTML web resource as a subarea in my sitemap. The resource opens a specific Account view. It works for me when I hardcode the parameters, but I want to dynamically pass the App ID to the iFrame which I have saved in an Environment Variable. Otherwise, it would not work in the other environments as the App ID changes.

I am using the Xrm.WepApi.retrieveMultipleRecords function to extract the app id from the environmentvariablevalue table and it works inside a JS web resource (see below), but not in a stand-alone HTML web resource.

enter image description here

Does anyone have a simple HTML code example with JS that can solve the above issue?

seyil
  • 1
  • 1
  • The below guide helped for me. Use mock XRM instead of the deprecated ClientGlobalContext library https://carldesouza.com/use-mock-xrm-to-upgrade-removed-clientglobalcontext-dynamics-365 – seyil Oct 25 '22 at 13:55

0 Answers0