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 Automate / Passing second value t...
Power Automate
Suggested Answer

Passing second value to Power Automate in ForAll

(0) ShareShare
ReportReport
Posted on by 111
Hi Team, I am having issues with my RunFlow from PowerApps. I want to be able to pass a second text value to my Flow along with my file in my ForAll below:
 
 
ForAll(
    DataCardValue5_1.Attachments,
    CSVFlow.Run(
        {
            file: {
                contentBytes: Value,  // Attachment content
                name: Name            // Attachment name
            }
        }
    )
)
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    69,028 Most Valuable Professional on at
    Add a second parameter of type string to the flow's trigger.  After you save it the flow will automatically move the file parameter to the last one in line.  Then call the flow using the following.
     
    CSVFlow.Run(TextParameter,
            {
                file: {
                    contentBytes: Value,  // Attachment content
                    name: Name            // Attachment 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
     
  • Albertax Profile Picture
    111 on at
    How would the flow know to take inpType.Text?  Sorry this is my first time building this particular type of flow:

    Would TextParamater refer to the input field?
     
    CSVFlow.Run(TextParameter,
            {
                file: {
                    contentBytes: Value,  // Attachment content
                    name: Name            // Attachment name
                }
            }


  • Suggested answer
    Pstork1 Profile Picture
    69,028 Most Valuable Professional on at
    Use the following code. But be careful. As I said if you save and reopen the flow you will see that it moved the file parameter to the second parameter instead of the first. It always will be the last.
    CSVFlow.Run(inpType.Text,
            {
                file: {
                    contentBytes: Value,  // Attachment content
                    name: Name            // Attachment name
                }
             }
    )
    
     

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 Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard