You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of referencing the ".updates" form, simply enter the NewDataCard.attachamments data input and the patch will create the file with the appended content and the appended file name
Describe alternatives you've considered
Currently, I need to create an edit form, copy the default attachment data card, and paste it on a blank page, then delete the form because it’s the only way to get this data card. Alternatively, I create a form, keep only the attachment data card, and use Form.Updates at the end of the Patch function.
Additional context
Benefits:
Simplifies the process of attaching and uploading files.
Reduces the need for additional Power Automate flows.
Enhances user experience by providing a more integrated solution.
The text was updated successfully, but these errors were encountered:
Type of Connector
Certified Connector
Name of Connector
Function Patch
Is your feature request related to a problem? Please describe.
Attaching a file and uploading this data in Power Apps is currently a cumbersome process with two main workarounds:
Using Power Automate:
For example:
Set(VarID;
Patch(List;
Defaults(List);
{
Name: Mateus;
Age: 18
}
).ID);;
Upload_PDF.Run(VarID;{file:{contentBytes:First(DataCard1.Attachments).Value;name: First(PDF.Attachments).Name}})
Without Using Power Automate:
For example:
Create a Form (Name: Form1)
Put the list in Item
I only leave the data card attachment.
Make the normal Patch and place Form1.Updates at the end
Patch(List;
Defaults(List);
{
Name: Mateus;
Age: 18
};
Form1.Updates
)
Both methods are complex and involve unnecessary steps.
Describe the solution you'd like
Suggested Improvement:
Develop a standalone attachment data card that can be added directly to a data entry form without needing to copy from an edit form.
Adapt the Patch function to handle attachments directly from this data card, eliminating the need for Power Automate in simple scenarios. For example:
PowerApps
Patch(
Lista,
Default(Lista),
{
Nome: "Mateus",
Idade: 20,
Sexo: "Masculino"
},
NewDataCard.Attachments
)
Instead of referencing the ".updates" form, simply enter the NewDataCard.attachamments data input and the patch will create the file with the appended content and the appended file name
Describe alternatives you've considered
Currently, I need to create an edit form, copy the default attachment data card, and paste it on a blank page, then delete the form because it’s the only way to get this data card. Alternatively, I create a form, keep only the attachment data card, and use Form.Updates at the end of the Patch function.
Additional context
Benefits:
The text was updated successfully, but these errors were encountered: