I have a form that requires two lookups. The first one is loaded with a value from the previous form that it is being added from. I want to get the id of that lookup in the onLoad event, but it is not loaded yet. This code works in an onChange event, so I know the code is sound.
var thisRMA = Xrm.Page.getControl("lena_fr_rma");
var curRMAKey = thisRMA.getAttribute().getValue()[0].name;
I get the curRMAKey.
BUT - the onLoad seems to run before the value is actually loaded into the lookup. Is there a way to wait until the values are loaded on to the form? Both values are Business Required, so I can't run this in the onSave event.
*This post is locked for comments
I have the same question (1)