I have an entity form in CRM2016 which contains a entity reference lookup to another part of the system.
When creating a new record the information for the fields are obtained via a java-script based wizard that fills in all the fields on the users behalf. One of the fields it fills in is an entity reference lookup.
Sometimes the wizard needs to create a value in the entity reference lookup that we haven't previously captured before. Our form-based java-script handles all the code to populate the value on form, where we initially set the ID value to an empty guid (00000000-0000...)
The plan was to have a pre-create plug-in spot that an entity reference had a empty guid, and go and create the foreign entity record on-the-fly and then correct the references during the pre-create operation.
However, I forgot that on new record save events the entity reference lookup names are not propagated into the plugin, only the empty guid. So I cannot create the foreign record on-the-fly.
Before I open a large can of fudge! Is there a way to force an entity reference lookup value to be pushed into the plug-in, or is there a way of passing a parameter or message via java-script that the pre-create plugin can detect and act upon?
Many thanks
Steve
*This post is locked for comments
I have the same question (0)