question

Michal-3596 avatar image
0 Votes"
Michal-3596 asked Michal-3596 answered

System Center Orchestrator with Service Manager - Runbook returns empty value

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.

msc-service-managermsc-orchestrator
capture.png (165.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StefanHorz avatar image
0 Votes"
StefanHorz answered

Hi @Michal-3596,

you must use "Get Relationship" Activity to het Analyst oder User Comments:

99554-get-analyst-comments.jpg

Regards,
Stefan



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Michal-3596 avatar image
0 Votes"
Michal-3596 answered

Hi @StefanHorz

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


scorch01.png (51.4 KiB)
scorch02.png (30.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StefanHorz avatar image
0 Votes"
StefanHorz answered

Hi @Michal-3596,

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Michal-3596 avatar image
0 Votes"
Michal-3596 answered

Dear @StefanHorz

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!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.