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 II
Super User II

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 II
Super User II

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (2,786)