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 :
Customer experience | Sales, Customer Insights,...
Suggested answer

duplicate an existing entity to create as a new record for another entity

(0) ShareShare
ReportReport
Posted on by 60

I want to clone the few fields of Entity A and its all subgrid values to a new Entity and create as a whole new record for the new entity

Can I get the Idea or suggestion ?

Thanks in advance

I have the same question (0)
  • DevCrmUser Profile Picture
    60 on at
    RE: duplicate an existing entity to create as a new record for another entity

    Hi a33ik  Could please advice on it?

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: duplicate an existing entity to create as a new record for another entity

    Hello,

    Everything depends on your scenario. I would say you might use Power Automate for that task.

  • DevCrmUser Profile Picture
    60 on at
    RE: duplicate an existing entity to create as a new record for another entity

    Thanks for you reply I am also planning power automate but the problem is it should be used by only a particular secuirty role..Lets say it as sales manager.

    Not sure if we can make power automate work for a particular security role

  • Shahryar Sultan Profile Picture
    on at
    RE: duplicate an existing entity to create as a new record for another entity

    Yes, you can clone the fields of Entity A and its subgrid values to a new Entity in Dynamics 365. Here's one way to accomplish this:

    1. Create a new record in the target entity (let's call it Entity B).

    2. Use Power Automate (formerly known as Microsoft Flow) to copy the values of the fields from Entity A to Entity B. You can use the "Create a new record" action in Power Automate to create a new record in Entity B and set the values of its fields based on the values in Entity A.

    3. To copy the subgrid values, you can use the "List Records" action in Power Automate to retrieve the records from the subgrid of Entity A. Then, use a loop to iterate through the records and create new records in the subgrid of Entity B. For each record, set the values of its fields based on the values in the corresponding record from the subgrid of Entity A.

    4. Once you have created the new record in Entity B and copied over its fields and subgrid values, save the record.

    This approach allows you to clone the fields of Entity A and its subgrid values to a new Entity B, and create a new record in Entity B that contains all the cloned values. Note that this approach assumes that the target entity (Entity B) has the same fields and subgrid as the source entity (Entity A). If the target entity has a different set of fields or subgrid, you will need to adjust the Power Automate flow accordingly.

  • DevCrmUser Profile Picture
    60 on at
    RE: duplicate an existing entity to create as a new record for another entity

    We want the flow to run for a particular role and also we do not want this flow to run every time the the entity B is created but when a user wants to copy the data from Enitity A.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 125

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 121 Super User 2025 Season 2

#3
Erin Lubben Profile Picture

Erin Lubben 73

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans