You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Create Task and Associate it with Incident ID

Received Response
12
Views
1
Comments
edited Oct 31, 2017 12:32PM in UI Extensibility 1 comment

Content

 

Hello all,

I am trying to create a task using the SOAP Services, The problem is that I don't know how to associate it  with an incident ID.

I cannot find any field to set Incident ID.

Is there any workaround ?

Thank you in advance,

Nick

Code Snippet

             // set organization
NamedID organization = new NamedID();
organization.Name = organizationName;

NamedID priority = new NamedID();
priority.Name = "Normal";

Task newTask = new Task();
newTask.Name = "Service Request Submission";
newTask.Organization = organization;
newTask.Priority = priority;

NamedIDHierarchy account = new NamedIDHierarchy();
account.ID = new ID() { id = 29, idSpecified = true };
account.Name = "admin";

newTask.AssignedToAccount = account;

return newTask; 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!