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 :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Stop automatically change of Owner

(0) ShareShare
ReportReport
Posted on by 10

Hey Guys,

I am new in Dynamics and try to figure out how I can admin many things. Now, I am needing some help.

Our idea:

if someone creates a opportunity and is not the account owner, he should have the possibility to make himself automatically to the owner of the opportunity

What i have done:

- Create an option field "Assign to me: Yes and No"

- create a work process:

If Account (Account):Owner does not equal [Opportunity:Created By] AND Opportunity:Assign to me equals [Yes]

then Assign: Opportunity to [created By(Opportunity]

It doesnt work!

Do you know why and may can help me?

I have the same question (0)
  • Suggested answer
    Ran Zhang Profile Picture
    on at
    RE: Stop automatically change of Owner

    Hi,

    May I know did you make a workflow for this? This should work. Could you please share the workflow? Besides, below two more approaches you can try to achieve the requirement.

    1. Change the cascading relationship between Account and Opportunity. In 1:N relationship, change the Assign behavior from cascade all to cascade none. Then Opportunity records will not have the same owners with Account.

    2. Create a post-creation plugin to assign Opportunity to new owner. Please refer to the article https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/org-service/sample-assign-record-new-owner

    And below sample code from here: https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/60847/change-owner-of-activity-entity-through-plugin/110121 

    Guid otherUserId = new Guid("c16326e3-09b1-e011-9693-005056930030");

    AssignRequest assign = new AssignRequest
    {                   
                        Target = new EntityReference(gcd_expenseapproval.EntityLogicalName, approvalId),
                        Assignee = new EntityReference(SystemUser.EntityLogicalName, otherUserId)
    };

    service.Execute(assign);

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 67

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 24 Super User 2025 Season 2

#3
mk1329 Profile Picture

mk1329 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans