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

Set the value in Task workspace through Addin

Accepted answer
6
Views
2
Comments
edited Jul 14, 2016 9:40AM in UI Extensibility 2 comments

Content

Hi,

I need to set the incident ID in incident field of task workspace which is opened through Addin[Asp.net code]. I have tried below code but it is not working. kindly let us know how to set it from Addin.


objTask.IID = 1133;

Thanks,

Vella

Version

service cloud May 2016

Code Snippet

             IRecordContext _rc= _globalContext.AutomationContext.CreateWorkspaceRecord(WorkspaceRecordType.Task);
                    ITask objTask = _rc.GetWorkspaceRecord(WorkspaceRecordType.Task) as ITask;

objTask.IID = 1133; // It is now working
  
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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