Approval Flow based on Service Managed By

gaf627
Tera Expert

I'm trying to create a Flow using Flow Designer that can be reused for several access request catalog items.  The approver is the Managed By on the Service (cmdb_ci_service) access is being requested for. I'm trying to avoid creating a Flow for each Service.  I'm able to accomplish this with Workflow, by creating a variable for the Service and making the name of the Service the default.  I then use a run script in the workflow to map the variable to RITM Configuration Item field.  I'm then able to reference the Configuration Item for Managed By approval.

I would like to use Flow to accomplish this, but the challenge I'm having is Flow requires me to reference the specific Catalog Item or Variable Set to get the variable. This would require me to create a Flow for each service because I'm using the variable default to set the Service.  

I'm open to suggestions.  I'm new to Flow Designer, so hopefully I'm just missing something.  Thanks!

1 ACCEPTED SOLUTION

Hello glad it works yeah so what you can do is instead of updating the RITM you can do a lookup record using the OOB action on the cmdb_ci__service and then use that lookup’s object to fetch the managed by on the ask for approval action it should work

View solution in original post

9 REPLIES 9

Mark Manders
Mega Patron

Can't you populate the cmdb_ci field on the RITM with the requested service and from there start the approval (approval by cmdb_ci_service.managed_by)?

If my answer helped you in any way, please then mark it as helpful. If it resolved the issue, please mark it as correct.

Mark


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Thanks Mark.  The challenge I have is how to identify the service so that I can populate the cmdb_ci field?  I can do it with workflow by using a run script to copy a variable to the cmdb_ci field.  The variable is hidden with a default value.  I can't find a way to do the same thing with Flow.

Rohit Sarkar1
Mega Guru

IF you are using a variable set for all the catalog items and only that variable will have the service so if you pass any catalog item in that one flow it should work for others that is all you have to do is create one flow get the variable from the variable set for 1 catalog item and then reuse the same flow for the other catalog items , should work you can try for 2 to see if the same is working.
Note: Provided all the catalog item you intend to use has the same variable set and the same variable from the variable set will be used to trigger the approval

Thanks Rohit! The problem with using the variable set is that I have no place put the cmdb_ci_service.  If I use the default in the variable that's part of a variable set, it will carry over to all catalog items.  In my example, I have 3 catalog items for 3 different services.  I need some way to identify the service in the catalog item.