Skip to main content

Notifications

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

  • DevCrmUser Profile Picture
    DevCrmUser 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.

  • 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
    DevCrmUser 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

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 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
    DevCrmUser 60 on at
    RE: duplicate an existing entity to create as a new record for another entity

    Hi a33ik  Could please advice on it?

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans