I inherited a small app and flow that I thought would be very easy to modify. The request was to add a order number field. Single line of text.
Added the column to the SP list, added a control to collect the data, modified the underlying flow to accept the text as a parameter.
Then I went to change the flow call and everything fell apart and I cannot figure out why.
I get an error saying I'm passing 7 parameters and it expects 5-6.
Here is the trigger definition in the flow:
FileName and FileContent are optional, all other fields are Required.
Here is the call from PowerApps:
PeerFeedbackFlow.Run(
EmployeeDataCardValue.Selected.Email,
FeedbackDataCardValue.Selected.Value,
DecriptionDataCardValue.Text,
If(
IsBlank(BusinessKCDataCardValue.Text),
"N/A",
(BusinessKCDataCardValue.Text)
),
If(
IsBlank(OrderNumberValue.Text),
"N/A",
(OrderNumberValue.Text)
),
Last(AttachmentsDataCardValue17.Attachments).Name,
{
file: {
name: Last(AttachmentsDataCardValue17.Attachments).Name,
contentBytes: Last(AttachmentsDataCardValue17.Attachments).Value
}
}
)
I cannot figure out what is wrong. I'm passing all the parameters in the same order that the flow seemingly expects them but the IDE in PowerApps tells me I'm passing 7 parameters and it expects 5-6.