Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Bryan Scarborough
    How to get information from an open Incident via a...Answered
    Topic posted June 11, 2019 by Bryan ScarboroughBlue Ribbon: 750+ Points, tagged SOAP 
    39 Views, 1 Comment
    Title:
    How to get information from an open Incident via a WorkspaceRibbonButton Add-In?
    Summary:
    WorkspaceRibbonButton Add-In interaction with Incident
    Content:

    Hello, 

    I am working on creating a WorkspaceRibbonButton Add-In (my first add-in), and I'm not seeing information on how to interact with the Incident that is opened.  What I am trying to to is when the button is clicked that several Tasks will be created and associated with the incident, but I'm not sure how to get information on the open incident.

    If this is in the documentation and I missed it, please let me know where.

    Thank you

    Version:
    18D

    Best Comment

    Suresh Thirukoti

    I think this use case is best served with Desktop Workflows and without any custom coding involved!!

    In case if you want to do via Add-In, then can you give more information....

    Normally to get Incident info via Add-In, you can use this code snippet

    IIncident _incident = <recordcontext variable>.getWorkspaceRecord(select Incident workspace record type) as IIncident;

    ~Suresh

    Comment

     

    • Suresh Thirukoti

      I think this use case is best served with Desktop Workflows and without any custom coding involved!!

      In case if you want to do via Add-In, then can you give more information....

      Normally to get Incident info via Add-In, you can use this code snippet

      IIncident _incident = <recordcontext variable>.getWorkspaceRecord(select Incident workspace record type) as IIncident;

      ~Suresh