Hi all,
I have an app where I am trying to send 2 collections to Power Automate.
The first collection is a bunch of text inputs and 2 dropdown values.
The second collection is a Data Table (which is the output of a Gallery)
I have the actions of uploading to Power Automate working for each but would like to merge the 2.
This is my first onselect action
ClearCollect(colFiles, ShowColumns(AddColumns(Gallery2.AllItems, "Description", TextInput23.Text, "base64", With({varDemoFromAttachmentControl: JSON(Image8.Image,JSONFormat.IgnoreBinaryData)},Mid(varDemoFromAttachmentControl, Find(",", varDemoFromAttachmentControl)+1, Len(varDemoFromAttachmentControl) - Find(",", varDemoFromAttachmentControl) -1 ))), "Description", "base64", "Name") );
'Process-UploadMultipleFiles'.Run(JSON(colFiles,JSONFormat.IndentFour));
Clear(colFiles);
ClearCollect(
varFileInfo,
'Process-CreateFileTemplateAwithImage'.Run(
Dropdown6.Selected.Value,
TextInput5.Text,
Dropdown9.Selected.Value,
TextInput10.Text,
TextInput9.Text,
TextInput12.Text,
TextInput11.Text,
TextInput19.Text,
TextInput20.Text,
TextInput14.Text
)
);
Reset(AttachmentControl_1);
Reset(TextInput5);
Reset(TextInput14);
Reset(TextInput19);
Reset(TextInput20);
Reset(Dropdown6);
Reset(Dropdown9);
Notify("Success",NotificationType.Success);This is my second onselect action
ClearCollect(colSteps, ShowColumns(finalSteps, "stepTitle", "stepDetail"));
'Process-UploadTable'.Run(JSON(finalSteps,JSONFormat.IndentFour));
Clear(finalSteps)In the end they would run using the same flow 'Process-UploadMultipleFiles'
In Power Automate after the PowerApps trigger action I have a Compose action
In this example above I have manually entered the first collections details but would like all of this to come through in one action
Thanks,
David

Report
All responses (
Answers (