cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

How to use if else expression for oracle field

Hi,

 

I've a field in oracle if it is empty i need to assign 0 or field value 

I tried this if(empty(items('Apply_to_each_8')?['LOCK_ID']),0,items('Apply_to_each_8')?['LOCK_ID']) 

 

but it is not working properly, how to do that?ifelse.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper V
Helper V

Re: How to use if else expression for oracle field

@{if(empty(item()?['LOCK_ID']),0,int(item()?['LOCK_ID']))}

 

Done!!!

View solution in original post

2 REPLIES 2
Highlighted
Helper V
Helper V

Re: How to use if else expression for oracle field

@{if(empty(item()?['LOCK_ID']),0,int(item()?['LOCK_ID']))}

 

Done!!!

View solution in original post

Highlighted
Microsoft
Microsoft

Re: How to use if else expression for oracle field

Hi,

 

Thanks for the follow up! Hopefully this can be helpful for future communities members.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (4,596)