Flow designer - Check if variabler is not empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 11:59 PM
Hi, I have a catalog item that refers to changing attributes on a service. The item has several variables that can generate changes on attribut on the service, but the problem is that if the variables are empty, existing information on the service is overwritten.
Does anyone have tips on how in flow designer I first check that variables are not empty and then update only attributes on services that contain data in variables?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 12:13 AM
@gugaj Here is how you can check not empty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 12:27 AM
Hi Sandeep,
Thanks for the feedback,
I was unclear. I want to make a check via flow that several variables in requested item are not empty. Those variables that contain data must generate an update on attribus on cmdb_ci_service. Variables that do not contain data must be skipped so that existing data on service is not overwritten.
Thnx!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 12:51 AM
Use get catalog variables action and pull data
then use that data in if condition to check empty or not
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 01:20 AM
Thank you saivishwaja!
So far I have understood but how do I update only attributes based on variables that contain data? Should I have to add an condition= "is not empty" for each variable and then do a separate update for each variable?
I want to first capture all variables that contain data (and skip empty variabbles), and then run an update on each attribute based on variables that contain data.