Using Flow Designer to update CI's

Darlene York
Tera Contributor

Hello,

I am trying to use flow designer to update the Life Cycle Stage and Life Cycle Stage Status when a server is being replaced.  I'm am using Update record and the variable is old_ci that is mapped to the configuration items.

Action - Update Record

Get Catalog Variable - old_ci

server [cmdb_ci_server]

Life Cycle Stage - End of Life

Life Cycle Stage Status - Retired.

 

Its not working, nothing is updating.  

Any help would be greatly appricated.

 

 

1 ACCEPTED SOLUTION

Erik Nelson
Kilo Sage

Hi Darlene,

 

I just tried this out in my PDI and it looks like it's failing to update due to the Business Rule "Validate lifecycle combination" on the cmdb_ci table. It runs when either the Life Cycle Stage or Life Cycle Stage Status is updated. This calls the Script Include "LifeCycleUtil" which handles making sure it's a "valid" combination of entries for the field.

 

If you haven't already, I'd suggest enabling Flow Reporting through Flow Designer Properties to at least "Flows Actions and Steps" as that will aid in displaying where errors might occur.

 

Erik

View solution in original post

13 REPLIES 13

Erik Nelson
Kilo Sage

Hi Darlene,

 

I just tried this out in my PDI and it looks like it's failing to update due to the Business Rule "Validate lifecycle combination" on the cmdb_ci table. It runs when either the Life Cycle Stage or Life Cycle Stage Status is updated. This calls the Script Include "LifeCycleUtil" which handles making sure it's a "valid" combination of entries for the field.

 

If you haven't already, I'd suggest enabling Flow Reporting through Flow Designer Properties to at least "Flows Actions and Steps" as that will aid in displaying where errors might occur.

 

Erik

Good morning Erik,

 

Thank you so much!  I have been scratching my head for a few days.  I appreciate your help.

When I go to flow reporting and switch from trace to flows and actions I just get a error that says Value of field record is not a GlideRecord.  I dont get the detail your showing.

 

DarleneYork_0-1681299195071.pngDarleneYork_1-1681299205000.png

 

I could be incorrect, but I don't know that it will change info from previously run Flows. I've got my PDI set to "Developer Trace" from the Flow Designer Properties, but I don't know that it makes a difference. It also looks like (unless you blanked it out) there isn't a value being pulled into your Runtime Value for the record. Depending on how you're getting to the data, that would be a precursor to the Business Rule not running is that it isn't pulling in the record to update.