Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to create custom Opportunity entity based on system Opportunity entity with 1:1 relation between them?

Posted on by 515

Hello,

I want to create custom Opportunity entity based on system Opportunity entity(Copy each field) with 1:1 relation between them. Is there any way to do so? Or manually do I need to copy one by one?

thanks,

Ashish

*This post is locked for comments

  • Suggested answer
    Otakar Venta Profile Picture
    Otakar Venta 240 on at
    RE: How to create custom Opportunity entity based on system Opportunity entity with 1:1 relation between them?

    Hello,

    Plugin "Clone field definitions" for XrmToolBox can help you.

    Otakar

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create custom Opportunity entity based on system Opportunity entity with 1:1 relation between them?

    The native CRM import utility can do this for you.  It will automatically create the entity for you and the fields based on the options specified during the import wizard.  You may want to change your organization's default solution prefix before doing this unless you're okay with everything being new_

  • Jason M. Cosman Profile Picture
    Jason M. Cosman 5,234 on at
    RE: How to create custom Opportunity entity based on system Opportunity entity with 1:1 relation between them?

    I'd have to agree with Aiden in this scenario Ashish in terms of the licencing.

  • Suggested answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,692 on at
    RE: How to create custom Opportunity entity based on system Opportunity entity with 1:1 relation between them?

    Hi Ashish,

    Not to be "that guy", but what you're attempting to do is a violation of the licensing guide - check out the details here crmtipoftheday.com/.../dynamics-365-for-team-members-fine-print  You can't mimic CRM functionality in order to bypass the restrictions for a user based on their license.

    With that said, your actual request of "create a record with data from an opportunity" is straightforward. On your new entity, have a lookup to the opportunity. You'll need to create a workflow that runs on the opportunity record, with whatever triggers your business rules require. When the workflow runs, have it call a Create activity to create a new record of your custom type, and fill in any fields you need to with details from the original opportunity.

    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

     Aiden

  • Ashish Moradiya Profile Picture
    Ashish Moradiya 515 on at
    RE: How to create custom Opportunity entity based on system Opportunity entity with 1:1 relation between them?

    Hello Jason,

    I want to do this as Team member licensed user can not update the values of System Opportunity entity, So, I want to create Custom entity for them same as System Opportunity entity to store changes temporary. Later I will write code that will update Actual system Opportunity entity record using more privileged account which will have rights to update values of System Opportunity entity.

    Ashish

  • Jason M. Cosman Profile Picture
    Jason M. Cosman 5,234 on at
    RE: How to create custom Opportunity entity based on system Opportunity entity with 1:1 relation between them?

    Hello Ashish;

    I think we'd need to understand a bit more information of what your trying to do here. If your asking if there is a quicker way to create the schema of your custom entity to another custom entity I'd say not within CRM itself. You'll be stuck opening up the fields of both and creating everything manually.

    I'd question what the business value is for doing this instead of using the out of the box opportunity entity though.

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans