Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to assign Owner of a task activity through web API?

Posted on by Microsoft Employee

I'm wondering how to assign a Task activity to a system user. My goal is to set up around 10 automated tasks for each new Lead so sales agents do not have to add them every time manually. I am using Dynamics CRM Online and the web API.

I have looked all around and I have tried most of the options, which I thought I narrowed down to using this:

newTask["owninguser_task@odata.bind] = "/systemusers("{userGuid}")";

But that doesn't seem to work. Everything else seems to be creating correctly, but it is defaulting to setting me as the owner of the task. I've also tried most other series of keys with no luck. I have also looked through my metadata and found that this "owninguser_task" is the correct key to use for this.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to assign Owner of a task activity through web API?

    That did the trick, I definitely tried that earlier though and is why I made the post. I guess if I ask the question then my problem will be solved either way. Thanks!

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: How to assign Owner of a task activity through web API?

    Hello,

    Did you try this?

    newTask["ownerid@odata.bind] = "/systemusers(userGuid)";

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans