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

Contact Workspace Addin to Create Incident C#

Accepted answer
edited Feb 14, 2017 9:30PM in Integrations and APIs 6 comments


I am trying to write a Contact Workspace Addin so when the Contact Workspace is Saved, it will create an Incident with the Contact ID from the Contact Workspace and populate a few custom fields.  Ideally, this would not open a Incident Workspace, but do everything in the background, including the save of the workspace. I haven't tried updating the custom fields, this shouldn't be a problem, but when trying to create the Incident I am getting an exception of Object reference not set to an Instance of an object. 


November 2016

Code Snippet

                     private IRecordContext recordContext;
        private IContact contactRecord;
        private IIncident incidentRecord;
        private IInc2Contact inc2Contact;
        private IList<IInc2Contact> contactList = new List<IInc2Contact>();

        public WorkspaceAddIn(bool inDesignMode, IRecordContext RecordContext)
            recordContext =

Howdy, Stranger!

Log In

To view full details, sign in.


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