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)

create a task and add to queue using crmservice.asmx - crm 2011 on premises

(0) ShareShare
ReportReport
Posted on by

Hi all , I have external application where I use crmservice.asmx to access crm data ,  I did many things like create update accounts , contact , create orders etc.

now I need to create a task and add it to a  queue.

we had crm 4 and upgraded to crm 2011 and I am still using crmservice.asmx

I am not able to add my task to a queue , I had tried with TargetQueuedTask and RouteRequest but it's not adding my task to queue

below my code , newtaskid return value from create task


Guid salesqueueid = new Guid("2009B3BA-666D-DE11-9078-0015C5EB1E00");
TargetQueuedTask tqtask = new TargetQueuedTask();
tqtask.EntityId = newtaskid;
RouteRequest route = new RouteRequest();
route.Target = tqtask;
route.RouteType = RouteType.Queue;
//SourceQueueId???? quetionable can i use default queue for the user// route.SourceQueueId = developmernqid;
route.EndpointId = salesqueueid;

RouteResponse resp =(RouteResponse)service.Execute(route);

please help me to solve this

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    write I have taken off  sourceQueueId  line now it created the task anded add to sales queue too.

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