cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
victore
Level: Powered On

Registering Error when trying to add a flow

I am trying to add a flow that sends all the attachments from a list item to an email recipient and I get the following error message:  Registering Error.  This is my flow.  I am pretty sure I have several flaws here. Any help is welcome.

Capture.PNGSend Multiple attachment from a item listRegistering Error.PNGRegistering Error when trying to add a MS FLOW

2 ACCEPTED SOLUTIONS

Accepted Solutions
victore
Level: Powered On

Re: Registering Error when trying to add a flow

Thanks for the advice now I understand what I am going to do.  Thanks for the advice.

View solution in original post

victore
Level: Powered On

Re: Registering Error when trying to add a flow

You are right, I had other ideas at the beginning that included MS Flows, but I think I found a more elegant solution using only Powerapps.  I have looked on the web and was able to send the attachments from the Attachment control right from Powerapps.

1. I added the Attachment Control box in the Edit form.

2. I then bound the attachments to a gallery on the Items property of BrowseGallery2 (This a browse gallery where it shows you all the attachments from the selected item) like so:  BrowseGallery1.Selected.'Attachments'  .  Where BrowseGallery1 is the browse gallery bound to the items from the Sharepoint list which include the attachment field with all its attachments.

3. I added a checkbox to the Datacard of BrowseGallery2.

4 OnVisible property of the Screen where I have BrowseGallery2 I type the following formula to the Onvisible: Clear(SelectedAttachments).  Where SelectedAttachement is a Collection.

5. In the Checkbox contro using the Oncheck property I type the following formula:Collect(SelectedAttachments,({Name:ThisItem.DisplayName,ContentBytes:ThisItem.Value,'@odata.type':""}))

6. On the OnUncheck property of the checkbox control I typed the following formula:
Remove(SelectedAttachments,({Name:ThisItem.DisplayName,ContentBytes:ThisItem.Value,'@odata.type':""}))
7. Wherever, you have the send email button, on the OnSelect property I typed the following formula

Office365.SendEmail("vespinoza@islearningjustlikeyou.com","This is the subject: Sending Selected Attachements","This is the Body:This worked",{Attachments: SelectedAttachments})

 

 

I came to this solution. Thanks to Shane Young, Audrie Gordon, Sharepoint(An Indian guy who also post videos, Sharepoint is the name of his channel) and others that are a bit more advanced but I will get to them when I finish with the foundation tutors I just mentioned above.

 

 

I will try adding other workflows for other purposes. If I have the same error I will let you know for sure.  Hope this helps you this time.  Let me know. 

 

 

View solution in original post

7 REPLIES 7
Community Support Team
Community Support Team

Re: Registering Error when trying to add a flow

Hi @victore,

 

Why did you start this flow from PowerApps? What is the trigger that you are using?

 

Actually if you use a different trigger like "SharePoint - when a new item is created", then you could use the dynamic content "Attachment" from this trigger on the attachment field of the send an email action.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
victore
Level: Powered On

Re: Registering Error when trying to add a flow

 I have created a flow that sends all the attachments using the trigger When created or modified and that flow works almost perfect, and I say almost perfect because for some reason sometimes it does not send all the attachment.  I got this flow from the Flow of the week MS forum.

Requirement:  Boss wants to send the email with all the attachments right from Powerapps from one of the screens. 
The reason I am using the Powerapps trigger is that I am going to get the emails from a text field to send those attachments from Powerapps because there is not static email she will be sending it to. Becuase of that I am using that trigger. In other words, I will grab the email from a PowerApp Text input field. This info will be passed by the power app trigger when the person hits the send attachments button.

 

Is the PowerApp trigger not working? Could I use something like the http trigger (like Post or Get methods).  Is that what you are suggesting?  Also, I noticed that the SendEmail function have the parameters attachments but I get other some errors because I think I am not passing the right parameters or I am missing one.  

 

Let me know, please

victore
Level: Powered On

Re: Registering Error when trying to add a flow

Thanks for the advice now I understand what I am going to do.  Thanks for the advice.

View solution in original post

Codegard1
Level: Powered On

Re: Registering Error when trying to add a flow

I am glad you were able to solve your issue, however this is not helpful for others trying to solve the original problem- which is why some Flows give a "registering error" when added from PowerApps. 

victore
Level: Powered On

Re: Registering Error when trying to add a flow

You are right, I had other ideas at the beginning that included MS Flows, but I think I found a more elegant solution using only Powerapps.  I have looked on the web and was able to send the attachments from the Attachment control right from Powerapps.

1. I added the Attachment Control box in the Edit form.

2. I then bound the attachments to a gallery on the Items property of BrowseGallery2 (This a browse gallery where it shows you all the attachments from the selected item) like so:  BrowseGallery1.Selected.'Attachments'  .  Where BrowseGallery1 is the browse gallery bound to the items from the Sharepoint list which include the attachment field with all its attachments.

3. I added a checkbox to the Datacard of BrowseGallery2.

4 OnVisible property of the Screen where I have BrowseGallery2 I type the following formula to the Onvisible: Clear(SelectedAttachments).  Where SelectedAttachement is a Collection.

5. In the Checkbox contro using the Oncheck property I type the following formula:Collect(SelectedAttachments,({Name:ThisItem.DisplayName,ContentBytes:ThisItem.Value,'@odata.type':""}))

6. On the OnUncheck property of the checkbox control I typed the following formula:
Remove(SelectedAttachments,({Name:ThisItem.DisplayName,ContentBytes:ThisItem.Value,'@odata.type':""}))
7. Wherever, you have the send email button, on the OnSelect property I typed the following formula

Office365.SendEmail("vespinoza@islearningjustlikeyou.com","This is the subject: Sending Selected Attachements","This is the Body:This worked",{Attachments: SelectedAttachments})

 

 

I came to this solution. Thanks to Shane Young, Audrie Gordon, Sharepoint(An Indian guy who also post videos, Sharepoint is the name of his channel) and others that are a bit more advanced but I will get to them when I finish with the foundation tutors I just mentioned above.

 

 

I will try adding other workflows for other purposes. If I have the same error I will let you know for sure.  Hope this helps you this time.  Let me know. 

 

 

View solution in original post

Parth
Level: Powered On

Re: Registering Error when trying to add a flow

I am also facing the same issue.

 

I am using Create a HTML table action in flow. but while adding it in powerapps i am getting Registering error.

 

I would like to know whether there is a resolution for this error rather than having an work around for it.

ltabosa
Level: Powered On

Re: Registering Error when trying to add a flow

I had this same error when I tried to insert one variable type of Array. 

 

My work around was to create my variable type of string and did a Concat in my PowerApps.

 

Concat(Collection_Name;'Table_Name'&"Separator")

 

In my flow I get the string and create a table using the string function SLIT

 

(split(variables('MyVariableFromPowerApps'),'Separator')

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,158)