System Center Orchestrator with Service Manager - Runbook returns empty value

Michal 196 Reputation points
2021-05-25T12:59:25.257+00:00

Hello,

I've created workflow to automate user creation.
It is creating new change request for each found user to create, and within it there is a review activity where in the comment field someone has to pass manager name for this new user.

It mostly works, but for some reason runbook returns empty comment field.
I'm not sure if it's the problem but it will be passed through service portal.

99438-capture.png

Sorry, it's in Polish, but I highlighted comment field where I've expected my comment to be there.

Thank you in advance for your help.

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.
215 questions
Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
210 questions
0 comments No comments
{count} votes

3 additional answers

Sort by: Most helpful
  1. Michal 196 Reputation points
    2021-05-26T09:17:05.867+00:00

    Hi @Stefan Horz

    Yes, I've picked wrong related class, now it works fine, thank you.
    But I have another problem.

    Here is my workflow:

    99842-scorch01.png

    99833-scorch02.png

    New User from GD would run once a day, this will gather some informations about new AD user and create SCSM request to collect rest of them.
    Then in monitor RA for manager it collects manager information for this new user upon closing review activity.
    It works but right now I need to pass all of the informations that were collected within 2 runbooks and probably create 3rd runbook for user creation.

    Problem is I'm not sure how to do it "optimal" way.
    I know I can pass informations using Invoke Runbook and Initlialize Data, but then I'm not sure how to pass them from New User from GD to Monitor RA for manager, since it contains Monitor Object activity and if I understand correctly it shouldn't be invoked by other runbook

    0 comments No comments

  2. Stefan Horz 3,461 Reputation points
    2021-05-26T19:21:00.307+00:00

    Hi @Michal ,

    I'm glad that I could help you with your first question in this thread. Next time please accept the answer an start a new question in a new thread. That's helps to get a better overview and people who might have a similar question later.
    Anyway, I would modify "Monitor RA for Manager" with:
    Initalize Data (With Parameter: CR ID)-> "Get CR" -> "Get Relationship" (RA from SR) -> "Get Relationship" -> "Get Comment" -> "Get Manager"
    At the end of "New user from GD" trigger the Runbook from above with "Invoke Runbook" Activity (wait for completion).

    Regards,
    Stefan

    0 comments No comments

  3. Michal 196 Reputation points
    2021-06-01T13:18:12.137+00:00

    Dear @Stefan Horz

    Sorry for the delay, I went in different direction since I didn't want to lose Monitor activity but now everything is working just fine.
    Thank you for your help!

    0 comments No comments