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 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)
  • 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

  • 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. 

  • 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.

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 Apps

#1
Kalathiya Profile Picture

Kalathiya 421

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard