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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 142 Super User 2026 Season 1

#2
ManoVerse Profile Picture

ManoVerse 131 Super User 2026 Season 1

#3
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans