Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Getting Parent Entity in Code

$
0
0

Situation

I have an entity (party) that is a child (parental relationship) to the matter entity.  I am a beginner at coding Javascript and now realize that when I am accessing the entity behind the party form, I am accessing the form contents and not necessarily all the fields for the entity. 

So, on the party form I can't get the ID of the parent matter unless I place the matter lookup field on the form.

Is there a way in code to obtain the parent MatterID without placing unneeded fields on the form?

Thanks,
Glen

P.S. - This is how it works IF the matterID field is somewhere on the form.

var sourceMatter = parent.Xrm.Page.ui.controls.get("matterID").getAttribute().getValue();


Viewing all articles
Browse latest Browse all 82002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>