Response from an Orchestrator web service call to a third party application

jansi rani krishnan 601 Reputation points
2021-10-29T08:07:18.053+00:00

Hi Experts,

I have used the link (http://www.laurierhodes.info/?q=node/101) as a reference for how to make a web-service call to Orchestrator Runbook. A third party application (In my case, Service Now) calls this Runbook which in turn creates a new Incident in SCSM based on the details received as part of web-service call. As per the reference link as mentioned above, Orchestrator web-service sends a standard response structure.

144924-image.png

Is there a way where we can customize the Orchestrator's response. I would like to include the newly created Incident number in the response, so that Service-Now can store for their reference. Any help or pointers in this regard is highly appreciated.

Regards,
Jansi

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
214 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Andreas Baumgarten 96,361 Reputation points MVP
    2021-10-29T17:01:07.133+00:00

    Hi @jansi rani krishnan ,

    the Orchestrator Web Service response can't be modified to contain the SCSM IR ID.
    The only option is to send a response from an activity inside the runbook itself.
    Depending how you create the Incident in SCSM the ID of the related incident should be available on the data bus of the runbook.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


  2. Andreas Baumgarten 96,361 Reputation points MVP
    2021-10-29T17:50:21.63+00:00

    Hi @jansi rani krishnan ,

    how are you interacting with SNOW from Orchestrator? You could call the SNOW web service and post the SCSM Incident ID back.
    I thought you are already interacting from Orchestrator and SNOW.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


  3. Andreas Baumgarten 96,361 Reputation points MVP
    2021-11-01T17:39:56.08+00:00

    Hi @jansi rani krishnan ,

    have you tried IncidentId instead of Incident_Id in the Return Data activity?
    Sometimes special characters can be tricky.

    Here I tested with IrID and it returns the data to the runbook that invoked my test runbook with the Incident ID.
    I am not sure how postman will work and deal with the return values of a Orchestrator runbook.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


  4. Andreas Baumgarten 96,361 Reputation points MVP
    2021-11-01T19:02:40.967+00:00

    Hi @jansi rani krishnan ,

    as I wrote before: The Return Data activity is used to return the related data to the Invoke Runbook activity.
    I am not sure if Postman can handle this.

    Maybe you have to return the IncidentID to SNOW inside your PowerShell script calling SNOW and return the IncidentID using the corresponding ID of the SNOW object.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten