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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Want to set owner while creating contact through web service

(0) ShareShare
ReportReport
Posted on by 255

Hi All,

I am trying to set owner as a Team when creating a contact using web service which is connecting to CRM.

tried below line in code.

contact["ownerid"] = new EntityReference("team", new Guid("940BD8EF-4B13-E711-80FF-5065F38A4A21")); 

but

its setting as the CRM's current login user.

can anyone help me.

I have the same question (0)
  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    I thinkt this is because changing owner on the create message is not allowed. Instead you need to use assign request once the record is created.

    Hope this helps.

  • Verified answer
    Kipetcoff Profile Picture
    1,037 on at

    Agree with @Ravi Kashyap. Try to assign record https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.assignrequest?view=dynamics-general-ce-9

  • Mona Chavan Profile Picture
    255 on at

    cool. thanks this works for me.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 96 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans