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.
Does anyone have a simple HTML code example with JS that can solve the above issue?