cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (68,100)