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()})

Report
All responses (
Answers (