Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Want to set owner while creating contact through web service

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
    Mona Chavan 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
    Kipetcoff 1,002 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
    RaviKashyap 55,410 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

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