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

Updating contact in an incident workspace via an add-in

Received Response
18
Views
6
Comments
edited Feb 8, 2016 3:23PM in UI Extensibility 6 comments

Content

I have a workspace add-in which works without problem when used on a contact workspace.  But when I use it on an incident workspace, I get an error:

The offending lines of code are:

cntct = (IContact)this._recordContext.GetWorkspaceRecord(WorkspaceRecordType.Contact);
cntct.AddrStreet = street;

 

I suspect that I have to do things differently when the main workspace is not a contact workspace, can somebody point me in the right direction please.

As requested:

The error message is: Object reference not set to an instance of an object

It is a new incident.  It works on a contact workspace when it is a new contact.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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