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.

  • Mona Chavan Profile Picture
    255 on at
    RE: Want to set owner while creating contact through web service

    cool. thanks this works for me.

  • Verified answer
    Kipetcoff Profile Picture
    1,037 on at
    RE: Want to set owner while creating contact through web service

    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

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Want to set owner while creating contact through web service

    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 95

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans