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

Add-ins - How to get first name and last name of contact from Incident Workspace

Accepted answer
38
Views
6
Comments
edited Jun 8, 2022 11:59AM in General Technical Discussions 6 comments

Content

Hi All,

I am developing the Addins which needs to get the details of contact (First name and Last Name) from the Incident workspace. With the help of IIncident interface i could able to retrieve the Contact Id (CID) but not able to get Contacts information such as First name , Last name etc.  

Please Find the coding:

IIncident incidentrecord = (IIncident)iRecordContext.GetWorkspaceRecord(RightNow.AddIns.Common.WorkspaceRecordType.Incident);
            int? tempContact = incidentrecord.Contact[0].Cid;

Any idea to get the contact details from the incident workspace ?

Thanks in Advance

PremKumar S

Code Snippet

             IIncident incidentrecord = (IIncident)iRecordContext.GetWorkspaceRecord(RightNow.AddIns.Common.WorkspaceRecordType.Incident);
            int? tempContact = incidentrecord.Contact[0].Cid; 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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