cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
babuInba
New Member

error in auto trigger while adding multiple files in SharePoint, "send an email with options if new file created in SharePoint"

Hi Everyone,

I created flow to auto trigger email when new file added in SharePoint site with "send email with option".

Flow works fine if try uploading single file, if i upload multiple files at same time flow trigger email only for one file.

Also please help me if we have option to get user comments in "send email with options"

Regards,

Babu M

1 ACCEPTED SOLUTION

Accepted Solutions
manuelstgomes
Super User
Super User

Hi @babuInba 

 

For multiple attachments, you have to go to the advanced mode and build the string yourself. You need to generate something like this:

[
  {
    "Name": "att1",
    "ContentBytes": "content"
  },
  {
    "Name": "att2",
    "ContentBytes": "content"
  }
]

To put here:

2020-08-20 12_40_18-Edit your flow _ Power Automate.png

 

Here's what you need:

  1. A string variable
  2. A loop that goes throwh all attatchments
  3. For each attacment append
  {
    "Name": "att1",
    "ContentBytes": "content"
  }
  1. Put on the field and send it.

View solution in original post

1 REPLY 1
manuelstgomes
Super User
Super User

Hi @babuInba 

 

For multiple attachments, you have to go to the advanced mode and build the string yourself. You need to generate something like this:

[
  {
    "Name": "att1",
    "ContentBytes": "content"
  },
  {
    "Name": "att2",
    "ContentBytes": "content"
  }
]

To put here:

2020-08-20 12_40_18-Edit your flow _ Power Automate.png

 

Here's what you need:

  1. A string variable
  2. A loop that goes throwh all attatchments
  3. For each attacment append
  {
    "Name": "att1",
    "ContentBytes": "content"
  }
  1. Put on the field and send it.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,519)