Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    TomO
    A couple more general questions.Answered
    Topic posted May 6, 2009 by TomO Red Ribbon: 250+ Points, last edited October 29, 2011 
    1153 Views, 4 Comments
    Title:
    A couple more general questions.
    Content:

    Don't hate me....  :-)

     

    1.  Can we automate the upload of the add-in zip file?

     

    2.  Can an add-in know what profile the agent is a member of or is there a way to obtain that information for the add-in?  (RightNowConnect?)

     

    3. Can we get a list of all the open workspaces?

     

    Best Comment

    Chris Omland

    I'm not sure what you mean by set that up. What I would do is create a workspace add-in that had no visual component and really didn't do anything. In the IWorkspaceComponentFactory initialize method I would get an instance of a singleton that had some type of collection, maybe just a List. Then in the IWorkspaceComponet I'd subscribe to the DataLoaded event and the Closing event. Everytime I received a DataLoaded event I'd put a reference to the IRecordContext in the collection contained in the Singleton. Then when I received the closing event I'd remove that reference. Then just place this add-in on any workspace that you need to track if it's open or closed.

     

    Does that make sense?

    Comment

     

    • Chris Omland

      1. No, sorry not at this time.

      2. Yes, it's in the IGlobalContext, it's the ProfileName property

      3. Not easily, what you could do is right a silent add-in that tracks when a workspace is opened and closed and store this state off somewhere. Make sense?

    • TomO
      I get your concept of a silent add-in, but how would I set that up?
    • Chris Omland

      I'm not sure what you mean by set that up. What I would do is create a workspace add-in that had no visual component and really didn't do anything. In the IWorkspaceComponentFactory initialize method I would get an instance of a singleton that had some type of collection, maybe just a List. Then in the IWorkspaceComponet I'd subscribe to the DataLoaded event and the Closing event. Everytime I received a DataLoaded event I'd put a reference to the IRecordContext in the collection contained in the Singleton. Then when I received the closing event I'd remove that reference. Then just place this add-in on any workspace that you need to track if it's open or closed.

       

      Does that make sense?

    • TomO

      Got it.  Thanks!

       

       

      Tom Onorato