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 / Pass optional paramter...
Power Apps
Answered

Pass optional paramter from power apps to power automate

(0) ShareShare
ReportReport
Posted on by 1,811 Super User 2024 Season 1
I have a flow with 6 parameters which are all required:-
 
 
 
now i want to make 2 of them optional, but if i do so, inside power apps i will get that the flow expected 4 paramters and i am passing 6 , here is the formula inside power apps:-
 
ForAll(AttachFiles.Attachments As d,

 

AddandRenameFile.Run(ClientDropdown.Selected.Value,MainCategoryDropdown.Selected.Title,SubCategoryComboboxCanvas.Selected.Title,MainFolderDropdown.Selected.Value,d.Name,

 

 {
 
                        contentBytes: Substitute(JSON(d.Value, JSONFormat.IncludeBinaryData),"""", ""),
 
                        name: d.Name
 
}
))
any advice please? how to pass an optional parameter to power automate?
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at
    Optional parameters in Power Automate aren't really optional.  Marking them as optional just means you can pass a null value for that parameter.  You still have to pass a record in that location.  It would look something like this
     
     
    ForAll(AttachFiles.Attachments As d,

     

    AddandRenameFile.Run(ClientDropdown.Selected.Value,MainCategoryDropdown.Selected.Title,SubCategoryComboboxCanvas.Selected.Title,{parametername: null},{parametername2: null},

     

     {
     
                            contentBytes: Substitute(JSON(d.Value, JSONFormat.IncludeBinaryData),"""", ""),
     
                            name: d.Name
     
    }
    ))

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • johnjohnPter Profile Picture
    1,811 Super User 2024 Season 1 on at
    thanks for the info
  • Power Platform 1919 Profile Picture
    1,894 on at
    HI @johnjohnPter,
    In Addition to @Pstork1 Response, we can try this approach present in this community thread:
    Power Apps Flow Trigger Error: Expected String but got Null

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
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard