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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PowerApps Flow passing...
Power Automate
Unanswered

PowerApps Flow passing Blank() to stored procedure...

(0) ShareShare
ReportReport
Posted on by 35

In PowerApps, I use a Coalesce([field], Blank()) formula to pass parameters to the Flow, which sends those parameters to my SQL stored procedure. When I look at the flow as it runs, what is actually getting passed is an object that looks like.

 

{
 "kind": 16,
 "severity": 1,
 "dataSourceName": null
}

 

Obviously, SQL is having trouble with this, since it really should just be passing a {null}... but it's getting:

sales={\r\n \"kind\": 16,\r\n \"severity\": 1,\r\n \"dataSourceName\": null\r\n}

What am I doing wrong here?

 

Thanks in advance.

Categories:
I have the same question (0)
  • pyee Profile Picture
    35 on at

    Update:

     

    I determined that the formula that was putting the data into the collection in the first place was simply: Value(Textbox1.Text). Apparently, when a textbox is blank, and you store the Value() of the Text property, it stores that object. So, I've updated that formula to be Coalesce(Value(Textbox1.Text, Blank()), and the Flow formula to Coalesce([field], 0), and it's passing 0's to the stored procedure as expected.


    Still can't get it to work with Coalesce([field], Blank()), which would be preferable, but at least I can pass 0's and then handle 0s back into nulls on the stored procedure side.

  • Verified answer
    v-yamao-msft Profile Picture
    on at

    Hi @pyee,

     

    Do you want to pass a null value from PowerApps to flow?

     

    I have seen a similar request on Flow Ideas Forum, please vote the idea at here:

    https://powerusers.microsoft.com/t5/Flow-Ideas/Ability-to-set-a-PowerApps-parameter-to-Blank-i-e-null/idi-p/114503

     

    Best regards,

    Mabel Mao

  • GabrielStJohn Profile Picture
    on at

    Hello, @pyee!

     

    Thank you for posting on the Flow Community Forum! If you have already posted your idea to the Flow Community Ideas Forum or found an existing idea to upvote, then you need to post the URL to the idea’s thread as a reply to this thread. Then click "Accept as Solution" on the reply if you approve it as a solution to your issue so that other users may vote for the Flow Idea and identify the information easily within this thread.

     

    Thank You for being an active member of the Flow Community!

     

    -Gabriel
    Flow Community Manager

  • Meidhi_78410 Profile Picture
    4 on at

    try with collapse in PowerApps and test the parameter in your stored procedure

     

    PA

    image.png

    SQL

    image.png

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard