We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

ERROR IN IGlobalContext instance

Received Response
5
Views
1
Comments
edited Mar 15, 2016 4:05PM in UI Extensibility 1 comment

Content

code:

namespace ExtBar
{
    [AddIn("Extension Bar AddIn", Version = "0.0.1.16")]
    public class ExtensionBarAddIn : Panel, IGlobalDockWindowControl, IFrameworkElementAddIn
    {
        private IGlobalContext RightNowGlobalContext;

(...)

RightNowGlobalContext.AutomationContext.EditWorkspaceRecord(
                    WorkspaceRecordType.Contact, long.Parse("contact_id"));

contact_id is a int variable. I fixed the value to 1 (valid id contact) to test.

I believe in error on IGlobalContext instance. How do?

 

Version

Service Cloud

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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