GlobalContext in WorspaceRibbonAddin
Content
Hi all,
I am looking for the way to develop an AddIn, that will make changes on record and after that create a new record and switch RecordContext to a new one.
For this I developed WorkspaceRibbonAddin and tried to make a new record:
IRecordContext RecordContextanswer2 = (IRecordContext)GlobalContext.AutomationContext.CreateWorkspaceRecord(RightNow.AddIns.Common.WorkspaceRecordType.Answer);
but this failed. Error is
Object reference not set to an instance of an object.
Can you please help me with this?
0