I am using an attachment control in powerapps and storing the metadata to a list. The data is getting stored only when there is an attachment.When i checked compose action if there is no attachment the collection is coming as empty . how to check before flow.
Submit Button Logic:
Set(varSuccess,SendFilesWithMetadataToSharePoint.Run(JSON(colAttachGallery,JSONFormat.IncludeBinaryData)).success);If(varSuccess="Yes",Clear(colAttachments);Notify("Your files have been successfully upload to the Blog Submissions",NotificationType.Success,3000);
Reset(Txt_Lastname);Reset(Txt_SupervisorEmail);Reset(Txt_BlogTitle);Reset(ctrl_Attachment);Set(CmbxEmailReset, true );Set(CmbxLeadReset, true );Navigate(Sucess,ScreenTransition.CoverRight),Notify("Error uploading files. Please try again or contact administrator",NotificationType.Error,3000))
Hi @santukondapally ,
I think that the most elegant way is to set your Submit Button - DisplayMode property to:
In this way, the user can't submit empty collections to flow (because the button is disabled).
Hope it helps !
Well in this case, if the flow is triggered, we have to see the flow.
From my point of view, after you parse the JSON you have to create a Sharepoint - create item action and then to use a condition to see if the DataStream is empty or not and for "not empty" branch to add a Sharepoint - Add an attach action using the ID of the Sharepoint - create item action.
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.