Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Sending more than one attachment to powerapps triggered flow

(0) ShareShare
ReportReport
Posted on by 10
Hi Community,
 
I am trying to build an app where I am sending the information to a sharepoint list using a flow. There a several fields using texts, values and also attachments.
 
Below the code I am using at the moment, but unfortunatley I am only able to attach one file, but I would like to attach several instead.
 
I tried quiet some time using the ForAll(DataCardValue150.Attachments), but I couldn´t get it working properly.
 
Can someone help me, please?
 
Sebastian
______________________________________
 
Safety.Run(
    Text(
        If(IsBlank(DataCardValue56.SelectedDate); Today(); DataCardValue56.SelectedDate);
        "yyyy-mm-dd"
    );
    If(IsBlank(DataCardValue141.Text); ""; DataCardValue141.Text);
    If(IsBlank(DataCardValue95.Text); ""; DataCardValue95.Text);
    If(IsBlank(DataCardValue118.Text); ""; DataCardValue118.Text);
    If(IsBlank(DataCardValue142.Selected.Value); ""; DataCardValue142.Selected.Value);
    If(IsBlank(DataCardValue143.Selected.Value); ""; DataCardValue143.Selected.Value);
    If(IsBlank(DataCardValue59.Selected.Value); ""; DataCardValue59.Selected.Value);
 
    If(
        CountRows(DataCardValue150.Attachments) > 0;
       
        {
            file: {
                name: First(DataCardValue150.Attachments).Name;
                contentBytes: First(DataCardValue150.Attachments).Value
            }
        };
        {}
    )
);;
Navigate(SafetyScreen);;
ResetForm(Form7)
 
 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard