Announcements
No record found.
dear all
i do have a workflow that creates two different entity records (RecA / RecB), and i want to set a lookup field value on RecA to contain the value of RecB.
please help.
thanks,
*This post is locked for comments
This should be straightforward. If you create RecB before RecA, then in the 'Look for' drop-down list of entities on the RecA form, you should see an entry for RecB at the bottom of the list, under 'Local Values'
Hi Ahmad ,
You can also do using field mapping -
itsolutions.bdo.ca/.../using-field-mapping-in-microsoft-dynamics-crm-to-copy-data-between-associated-records
Let me clarify more, when lead qualifies, it creates opportunity(RecA),and i have a workflow that creates RecB(custom entity) on creation of opportunity, now i need the lookup value of RecB to be placed on opportunity (RecA).
sorry for not elaborating enough right from the beginning.
thanks, Let me clarify more, when lead qualifies, it creates opportunity(RecA),and i have a workflow that creates RecB(custom entity) on creation of opportunity, now i need the lookup value of RecB to be placed on opportunity (RecA).
Please refer below article -
www.itaintboring.com/.../dynamics-crm-use-a-workflow-to-set-a-lookup
Hi Ahmad,
You cannot do this using oob workflow designer as there is no provision for updating 1:N entity records. Only N:1 can be updated. In the example you mentioned RecB is a lookup on Rec A which makes it 1:N from BtoA. You should leverage a custom way to do this.
Hi Ahmad
As i understand you need to create a custom workflow activity. And you can achieve this scenario like Guid RecAguid=service.create(RecA);
Then assign RecAguid in lookup of RecB.
Ho Goutam
field mapping did not work in my case.
one thing can be the reason behind this issue, is it possible to make one record a child for two parent records?
Are you creating both the record at once from a workflow, if yes then you can achieve this without custom code. You need to create RecB first and then while creating RecA, set RecB from the dynamics values under local values (This would appear with teh name of step).
Even if you have are creating records separately, you could still update child records by using the Dyanamics 365 Workflow Tools -
github.com/.../Update%20Child%20Records.md
Hope this helps.
dear Goutam
please email me privately on ahmadfl2000@hotmail.com , i have some business with you.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.