web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Force a currency value...
Power Apps
Answered

Force a currency value of 0 if the field is left empty

(0) ShareShare
ReportReport
Posted on by 1,362

I have six Currency columns that when left empty cause my workflow to crash because variables used for each currency column is expected a value and not a NULL.

In the default property of each field I am using the below logic.

golfnutt82_0-1676302153387.png

golfnutt82_1-1676302213218.png

 

 

Categories:
I have the same question (0)
  • RJM07 Profile Picture
    801 on at

    Try this

     

    RJM07_0-1676306107748.pngRJM07_1-1676306123261.png

    RJM07_2-1676306156728.png

     

  • golfnutt82 Profile Picture
    1,362 on at

    That is good information. So are you saying that I cant modify my formula in my field's default property so that if no value is entered the default value equals "0"?

  • RJM07 Profile Picture
    801 on at

    Some fields do have a 'Default' option... It might work if you put a "0" in there

  • golfnutt82 Profile Picture
    1,362 on at

    The default for the field already has a formula but I am trying to use that and account for a null value and then set the default property to zero. The code I have works but as of rignt now, I have to manually place a zero there.

  • Verified answer
    golfnutt82 Profile Picture
    1,362 on at

    Ok, so this whole fiasco was brought about by someone who created a sharepoint list with currency fields.
    The patch would run, which chould add the form values to the lists fields and then the workflow would start.
    The workflow uses a scope and in the scope it defines the type of field "Currency", the format "$1,234.00" and the currency type "en" for English. If the form field that holds the Unit Price is blank the variable will fail because it is looking for a value. 

    golfnutt82_0-1676322523645.png

    To fix this, I went into the list for each of the Unit Price fields in question and set their defaults to ZERO so when I added a new item and didnt put and dollar values in the form the default value is set to $0.00

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard