web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Copy Records from one entity sub grid to another

(0) ShareShare
ReportReport
Posted on by 3,079

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 

I have the same question (0)
  • Verified answer
    LeoAlt Profile Picture
    16,331 Moderator on at
    RE: Copy Records from one entity sub grid to another

    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

  • ashish12 Profile Picture
    3,079 on at
    RE: Copy Records from one entity sub grid to another

    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. 

  • LeoAlt Profile Picture
    16,331 Moderator on at
    RE: Copy Records from one entity sub grid to another

    Hi partner,

    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.

    Hope it helps.

    Best Regards,

    Leo

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.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans