Hello,
CRM2011 on premise, rollup 13
In a postoperation create plugin (synchronous) i try to create childrecords for the record that is triggering the plugin. An instance of childentity B should be created with a lookup pointing towards entity A that is triggering the plugin.
When i try to set the lookup on entity B (pointing it to entity B) and try to create it i receive the error that the instance of entity A with id xxx does not exist. I assume this is because the postoperation plugin runs in a transaction,
and entity A has not been effectively created when i try to set it as the lookupvalue of the childentities i am trying to create. I would like to avoid working asynchronous.
I'm quite sure what i am trying to do is not impossible, any advice on how to accomplish this would be greatly appreciated.