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 :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hello,

    Did you try this?

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

  • Community Member Profile Picture
    on at

    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!

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans