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

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

 

Done!!!

View solution in original post

2 REPLIES 2
SumanKoduri
Helper V
Helper V

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

 

Done!!!

View solution in original post

alrez
Community Support
Community Support

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,530)