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 / Auto rejection in Appr...
Power Apps
Unanswered

Auto rejection in Approval Flow

(0) ShareShare
ReportReport
Posted on by 3

Hello, We are facing one problem with power apps and power automation integration. Once a user submits from power apps, one approval flow must start. But instead of starting the flow, the user automatically gets a rejection email that his request has been rejected.

 

*'Production-VendorAttachment' is an approval flow.

 

Please find below function attached to the submit button:
ForAll(
    Gallery3_2.AllItems,
    Collect(
        Final_Attachment,
        {
            uid: TextInput1_3.Text,
            Buyer:TextInput14.Text,
            Required_Approval: TextInput2_3.Text,
            InvoiceNo: TextInput1_9.Text,
            Vendor: TextInput1_11.Text,
            Amount: TextInput1_10.Text,
            ReasonForPendancy: TextInput1_12.Text,
            filename: Label5_1.Text,
            Attachment: Image4_1.Image,
            InvoiceDate:DatePicker1.SelectedDate,
            CostCenter:TextInput1_15.Text,
            Department:TextInput1_16.Text,
            CostOwnerEmail:TextInput1_17.Text,
            preventiveaction:DataCardValue13_5.Text
        }
    )
);
'Production-VendorAttachment'.Run(
    JSON(
        Final_Attachment,
        JSONFormat.IncludeBinaryData
    )
);
Clear(Final_Attachment);
Notify(
    "Invoices Submitted SuccessFully",
    NotificationType.Success
);Navigate('Success Screen');Patch('Invoice-GRN_1',LookUp('Invoice-GRN_1',ID=TextInput1_3.Text),{UserResponse:Today()})

Categories:
I have the same question (0)

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 462

#2
WarrenBelz Profile Picture

WarrenBelz 425 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard