Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Life Cycle Stage Status Change using Flow Designer

ambadaspotdar
Tera Contributor

 

Hi,

 

Getting Business rule Error while changing Life Cycle Stage Status using flow designer. Same is working fine manually.

 

Error: "Error occured while updating record: Operation against file 'cmdb_ci' was aborted by Business Rule 'Validate lifecycle combination^36aa723643361110ec0553c0bcb8f28f'. Business Rule Stack:Validate lifecycle combination"

 

ambadaspotdar_0-1701755585058.png

 

 

ambadaspotdar_1-1701755601744.png

 

 

Thanks

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @ambadaspotdar ,

 

Just build exactly the same as your flow and tested. It works for me with the active BR. But the set value action in flow need to be in script, like this:

 

Life Cycle Stage:

Stage.PNG

 

Life Cycle Stage Status:

Stage status.PNG

 

CMDB Record:

Success record.PNG

 

Flow Operation:

Flow operation.PNG

View solution in original post

10 REPLIES 10

Community Alums
Not applicable

Hi @ambadaspotdar ,

 

Just build exactly the same as your flow and tested. It works for me with the active BR. But the set value action in flow need to be in script, like this:

 

Life Cycle Stage:

Stage.PNG

 

Life Cycle Stage Status:

Stage status.PNG

 

CMDB Record:

Success record.PNG

 

Flow Operation:

Flow operation.PNG

ambadaspotdar
Tera Contributor

@Community Alums, 

 

Thank You Jack. Solution is working fine now.

 

But can you please help me to me it dynamic.

 

 

Community Alums
Not applicable

@ambadaspotdar , what do you mean by dynamic, please specify more details

What was the solution for making it dynamic? I have a task where we reference the two lifecycle fields, these get set and the task is closed. Then later in the flow we try to update a device with the values set in the previously closed task. I see the sys ID values but nothing updates. Per a previous answer, if you manually set the variable it works.

 

I am confused to why you can manually set, but you cannot query a field reference and and take its data pill and place it in to a different part of a flow. I think it is to do with the field type?? If you have managed to overcome this please share - thanks!

ambadaspotdar
Tera Contributor

@Community Alums, Got the solution. Thanks.