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

Getting error with _globalContext in dot net Add in

Accepted answer
edited Aug 4, 2016 9:01PM in UI Extensibility 2 comments




I am trying to write a dot net add-in for fetching Incident object details.


I am intializing the GlobalContext object in the Intialize() of  method WorkspaceAddInFactory, But still i am getting an error ,when i am trying to access _globalContext, as "Object reference not set to an Instance of object."


Please find my code below and help me where I am doing something wrong?




feb 2016

Code Snippet

             using System.AddIn;

using System.Drawing;

using System.Windows.Forms;

using RightNow.AddIns.AddInViews;

using System;

using System.ServiceModel;

using FeeCodeAddIn.RightnowService;

using System.ServiceModel.Channels;



// File: WorkspaceAddIn.cs


// Comments:


// Notes:


// Pre-Conditions:



namespace FeeCodeAddIn


    public class WorkspaceAddIn : Panel, IWorkspaceComponent2


        /// <summary>

        /// The current workspace record context.

        /// </summary>

        private IRecordContext _recordContext;


        /// <summary>


Howdy, Stranger!

Log In

To view full details, sign in.


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