Hello All,
I wanted to know how to copy or associate Sub grid C records of entity A to Sub grid C in entity B.
Wanted to associate assets in Opportunity to assets in agreement after agreement is create from opportunity.
Thanks, ashish
Hi partner,
There is no OOB way to do this. You may need to do some coding.
You could refer to this logic.
1. Get the current subgrid data from entity A form.
2. Assign the record id of entity B which created from entity a to the entity c lookup fields of entity B.
You could refer to the following blogs.
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/307563/fetch-data-and-bind-to-subgrid-in-crm-d365-online
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/272889/adding-new-record-to-subgrid-using-javascript/775712
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/179066/loading-the-subgrid-data-through-plugin-in-crm-2015/441131
https://stackoverflow.com/questions/49915045/copy-data-from-one-entity-subgrid-to-another-entity-subgrid
I haven't tried yey, and it will be a large work to do.
Hope it helps.
Best Regards,
Leo
Can we write a workflow to fill newly created agreement id to assets lookup, so we can link the assets created in opportunity to agreement also.
Thanks for your recognition :-)
If you create agreement from opportunity by workflow, you could add a child workflow to update the assets lookup fields, But if you craete the agreements from opportunity by subgrid, may be you need to create a custom wolkflow to do this.
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 a top community star!
In our never-ending quest to help the Dynamics 365 Community members get answers faster …
Welcome to the next edition of the Community Platform Update. This is a status …
Stay up to date on forum activity by subscribing.