Hello CRM Community,
If I'm not mistaken, Microsoft has deprecated the getQueryStringParameters() function in the new UCI, and I need help figuring out how to update our method to work with UCI.
BACKGROUND:
From an Entity A form, I am creating a new Entity B record (see Fig. 1 directly below)
Fig 1.
Currently, we're using the following function to check which entity Entity-B was created from, but like I mentioned, this does not work anymore in the new UCI:
var createFrom = Xrm.Page.context.getQueryStringParameters()._CreateFromType;
QUESTION:
After clicking "New" and I'm on a new Entity B form, using the execution context passed via the event handler on a form (see Fig. 2 below), how can I retrieve the ID and Name of the entity from which Entity B was created? (This is a JavaScript web resource function that will be triggered when the new Entity B form is loaded -- onLoad)
I could really use the community's help. Thank you in advance!
Much appreciation,
Daniel