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 / Power Automate flow - ...
Power Apps
Answered

Power Automate flow - initialize variable for no data

(0) ShareShare
ReportReport
Posted on by 151

Hello,

 

Looking for some advice of capturing blank data from an entry form within power apps that is being called upon as a variable within a flow.

 

So I am using a flow to generate a pdf report. In this example I have an initialize variable called "Project Manager". This variable is then entered into my html that is being converted to pdf. What I need to capture is if the datacardvalue for Project Manager within powerapps is blank then my project manager variable needs to be blank so this will display no value on my pdf. 

 

Currently If no value is entered for project manager. I get an error message of pdf.run failed: The method 'Run' has an invalid value for parameter 'Project Manager'

 

 

I have tried NewPDF.Run(If(DataCardValue3.Selected.DisplayName = Blank(),Blank(),DataCardValue3.Selected.DisplayName) but no luck *Datacardvalue3 is my project manager datacard*

 

 

thanks,

Jake

Categories:
I have the same question (0)
  • Verified answer
    zmorek Profile Picture
    3,272 on at

    I think based on your error message and formula, the flow can't run with a blank value in that parameter. You could consider something like:

     

    NewPDF.Run(IsBlank(DataCardValue3),"N/A",DataCardValue3.Selected.DisplayName)

     

    That might pass a string to your flow, which it might like more than a blank value. Then if you really must, use a Compose action in your flow to convert the "N/A" to blank.

  • Jakegolden Profile Picture
    151 on at

    @zmorek thanks so much, the N/A worked. I had to add an If in front of the Isblank. But worked perfectly. 

    Bad news it appears I will need the value to be blank so I will be needing to go the compose route. I have not done much with composing so I may need a few pointers in this situation. 

  • Jakegolden Profile Picture
    151 on at

    @zmorek Actually I tried 

     

    NewPDF.Run(If(IsBlank(DataCardValue3.Selected.DisplayName)," ",DataCardValue3.Selected.DisplayName)

     

     

    and this worked for creating the blank space needed. Thanks again for pointing me in the right direction!

     

    Jake

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard