For ARO service request with multiple MA's
For ARO service request with multiple MA's. Is there a way to delete or close any unused MA's in the RO?
I have different MA activities depending on user results and I need to be able to close or remove the un-selected MA's
or even better yet, is there an option to create a MA dynamically depending on end user responses?
Answers
ARO doesn't have this kind of logic control.
I think your best bet (and something I myself have done) is using ARO to map to all possible outcomes (MAs). Then with Orchestrator, SMA, or PowerShell Activity conditionally control whether or not those MAs get Skipped. Just make the runbook the very first activity so it does all of the shaping of the request at the outset.
Depending on the shape of your request, let's say several of these MAs are contained within a single PA or SA. The runbook would just have to Skip the SA/PA and native SCSM would then skip all contained Activities.
I am not much of a powersheller, do you by chance have a script that can just delete any MA with a null title? I really appreciate your response.
You don't want to delete, you may think you do (I know I did once!) but you don't. Just hear me out -
If you delete a Work Item out of SCSM, you will have zero means to determine what happened to it because you no longer have auditing of that thing. So the only thing left here is to infer what could have happened to it and that uncertainty isn't something you want when you have hundreds or thousands of Request Offerings, Incidents, Problems, Changes, and all of the other moving parts of SCSM.
So instead - Skip. This way you'll have the ability to slice your reporting really easily e.g. "ignore all Skipped". You'll maintain the audit history of that object - did SCSM skip it? or did an analyst skip it? And if someone makes a mistake, you'll have to opportunity to return to a Skipped activity (again whether that was done by an Analyst or SCSM).
To Skip a Manual Activity, the following PowerShell (via SMLets) looks something like this:
In these two lines you're first saying
The thing is, this really just skips a single MA whose ID you already know which doesn't do much good given your current situation. Because people will submit requests and the IDs will always be different. So what you need to do is place yourself in the context of a submitted request. The only thing you know if you were the first Activity in a Request is your own ID and Class. SCO, SMA, or PSA let you pass the current ID as an input to the automation. Depending on which one of these 3 technologies you use, choosing that input is going to be ever so slightly different. So I'll preface the next part that complexity scales a bit from the above example:
As you can see it starts kind of similar. What happens next I generally pull up the UI so I can follow along with how to swing from the runbook to around the Work Item I'm contextually working in.
Hope this helps
Thank you very much...
Any chance of just using this portion without runbooks?
You'd need to tweak the initial input of this PowerShell to get it working with PowerShell Activity which is essentially a runbook.