cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Helper V
Helper V

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

 

Done!!!

View solution in original post

2 REPLIES 2
Helper V
Helper V

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

 

Done!!!

View solution in original post

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (4,154)