I have to send emails to a number of different people with a specific attachment for that person. I created an Excel spreadsheet with the data for the email and uploaded it to Onedrive for Business. I also created a folder on Onedrive for Business with each of the attachments in PDF format. I am trying to automate this Power Automate. I have tried many different flows but always run into issues. Can anyone help.
Error:
2308 | Newville | First United | 111 Big Spring Ave. | ehb47@comcast.net | Statements1.pdf |
7314 | Camp Hill | Camp Hill | 101 N. 23rd St. | ehb47@comcast.net | Statements2.pdf |
7315 | Carlisle | First | 2A N. Hanover St. | ehb47@comcast.net | Statements3.pdf |
7316 | Carlisle | Second | 528 Garland Drive | ehb47@comcast.net | Statements4.pdf |
7317 | Carlisle | Dickinson | 12 Church Rd. | ehb47@comcast.net | Statements5.pdf |
7318 | Chambersburg | Central | 40 Lincoln Way West | ehb47@comcast.net | Statements6.pdf |
7319 | Chambersburg | Falling Spring | 221 N. Main St. | ehb47@comcast.net | Statements7.pdf |
7321 | Dillsburg | Monaghan | 1185 Gettysburg Pike | ehb47@comcast.net | Statements8.pdf |
7323 | Duncannon | Duncannon | 3 N. High St. | ehb47@comcast.net | Statements9.pdf |
7325 | Gettysburg | Gettysburg | 208 Baltimore St. | ehb47@comcast.net | Statements10.pdf |
7326 | Gettysburg | Great Conewago | 174 Red Bridge Rd. | ehb47@comcast.net | Statements11.pdf |
7327 | Gettysburg | Lower Marsh Creek | 1865 Knoxlyn Rd. | ehb47@comcast.net | Statements12.pdf |
7328 | Greencastle | Greencastle | 57 W. Baltimore St. | ehb47@comcast.net | Statements13.pdf |
7330 | Harrisburg | Capital | 1401 Cumberland St. | ehb47@comcast.net | Statements14.pdf |
7333 | Harrisburg | Market Square | 20 S. Second St. | ehb47@comcast.net | Statements15.pdf |
7338 | Hershey | Derry | 248 E. Derry Rd. | ehb47@comcast.net | Statements16.pdf |
7339 | Lebanon | Christ | 1300 Maple St. | ehb47@comcast.net | Statements17.pdf |
7340 | Lebanon | St. Andrews | 600 S. 12th St. | ehb47@comcast.net | Statements18.pdf |
7341 | Loysville | Centre | 3912 Freeman Hollow Rd. | ehb47@comcast.net | Statements19.pdf |
7342 | McConnellsburg | McConnellsburg | 116 S. Second St. | ehb47@comcast.net | Statements20.pdf |
7343 | Mechanicsburg | Mechanicsburg | 300 E. Simpson St. | ehb47@comcast.net | Statements21.pdf |
7344 | Mechanicsburg | Silver Spring | 444 Silver Spring Rd. | ehb47@comcast.net | Statements22.pdf |
7345 | Mercersburg | Upper West Conecocheague | 34 W. Seminary St. | ehb47@comcast.net | Statements23.pdf |
7347 | Middletown | Presbyterian Congregation of Middletown | Union and Water Sts. | ehb47@comcast.net | Statements24.pdf |
7351 | Newville | Big Spring | 25 S. Corporation St. | ehb47@comcast.net | Statements25.pdf |
7355 | Shippensburg | Middle Spring | 125 Middle Spring Rd. | ehb47@comcast.net | Statements26.pdf |
7357 | Waynesboro | Waynesboro | 105 E. Main St. | ehb47@comcast.net | Statements27.pdf |
7359 | Millerstown | Perry Valley | 301 Old Ferry Rd. | ehb47@comcast.net | Statements28.pdf |
7362 | Camp Hill | Christ | 421 Deerfield Rd. | ehb47@comcast.net | Statements29.pdf |
7567 | Mifflin | Lower Tuscarora | 54 Church Rd. | ehb47@comcast.net | Statements30.pdf |
7593 | East Waterford | East Waterford | POB 174 | ehb47@comcast.net | Statements31.pdf |
7609 | McAlisterville | Lost Creek | Box 91 | ehb47@comcast.net | Statements32.pdf |
7611 | Mifflintown | Westminister | 208 Lemon St. | ehb47@comcast.net | Statements33.pdf |
7635 | Wells Tannery | Wells Valley | POB 27 | ehb47@comcast.net | Statements34.pdf |
8997 | Mifflin | McCoysville | 2562 McCoysville Rd. | ehb47@comcast.net | Statements35.pdf |
9168 | Dauphin | Hope | 931 Red Hill Rd. | ehb47@comcast.net | Statements36.pdf |
10164 | Harrisburg | Pine Street | 310 N. Third St. | ehb47@comcast.net | Statements37.pdf |
10359 | Harrisburg | Paxton | 3500 Sharon St. | ehb47@comcast.net | Statements38.pdf |
11019 | Camp Hill | Harrisburg Korean | 1127 Slate Hill Rd. | ehb47@comcast.net | Statements39.pdf |
11159 | Mechanicsburg | St. James | 1425 Orr's Bridge Rd. | ehb47@comcast.net | Statements40.pdf |
11436 | Newport | Highland | 11 Church Rd. | ehb47@comcast.net | Statements41.pdf |
15128 | Harrisburg | Faith Immanuel | 1801 Colonial Rd. | ehb47@comcast.net | Statements42.pdf |
23167 | Hancock, MD | Mt. Olivet | POB 327 | ehb47@comcast.net | Statements43.pdf |
23233 | Warfordsburg | Warfordsburg | 12941 Buck Valley Rd. | ehb47@comcast.net | Statements44.pdf |
Sorry All, I now see I forgot to include the "File Content" variable in Send Email V2. But once added I get this error...
Hi There! Can you show a screenshot of the final flow is looking now after the final change you did to include the "File Content" variable in Send Email V2?
The new error seems to suggest that you may have something else in the "apply to each" action apart from the "value" input.
Here is the error and the flow
Thanks!
Try removing the "file content" variable from the "apply to each" card. You should have "value" green card only
Let me know if that worked!
Now I get a null content error
Do you still have "File content" at the bottom of the card?
#1 should be gone
#2 should stay
Can you try removing #2 and adding it back by selecting from the "dynamic content" area?
If that doesn't work , can you hover over "file content x" to see the formula that is generating behind the scenes?
Remove #2 and added it back...still did not work. Here is the formula generated
Very strange.
When you excecute the flow, what do you see in the output of the "Get file content" card? do you see a link to open the output? when you click in "download" should open and show you a lot of text with a "body" attribute in the 4rth line. can you check if you see this?
Something that I would do is removing the cards and adding them back
I believe I should be using "Get File Metadata by Folder" and "Get File Content by Folder". But If I try to use those, it shows me the folder on onedrive "Statements" but when I click on it, nothing happens...it won't let me select it.
As it is now I am only getting metadata and content for a specific file and not every one in the folder which corresponds to the attachments in the Excel spreadsheet.
did you try checking the "outputs" from the Get file content card? (see screenshot above)
What do you get when you see the ouputs ?
Here is the output
{"statusCode":200,"headers":{"Pragma":"no-cache","x-ms-request-id":"2d1f7813-3cd6-3926-b21b-de5fcdbfd529","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY","Cache-Control":"no-store, no-cache","Set-Cookie":"ARRAffinity=fa9050a86380ecce883d8ff2e805dd22d58cc29332b6761a0fc08c7d82b3fa74;Path=/;HttpOnly;Secure;Domain=office365-wus.azconn-wus-01.p.azurewebsites.net,ARRAffinitySameSite=fa9050a86380ecce883d8ff2e805dd22d58cc29332b6761a0fc08c7d82b3fa74;Path=/;HttpOnly;SameSite=None;Secure;Domain=office365-wus.azconn-wus-01.p.azurewebsites.net","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"false","Date":"Sun, 11 Jul 2021 23:40:51 GMT","Content-Length":"0","Expires":"-1"}}
I see. Seems like the OneDrive is not returning the file content. as you can see in the image previously sent and also below, when I replicate what you are doing I get a "body" attribute in the response.
the response you shared doesn't include that. Can you make sure that the file and folder both exist , you can also try to remove the card and add it back to the flow, then add it again in the "send email" card.
can you show what you have in the "get file content" card? is it still the same text as you have in the initial post ?
{"statusCode":200,"headers":{"Pragma":"no-cache","x-ms-request-id":"71fe9f02-c92a-4568-a289-e9ebb4cff0ec","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"false","Accept-Ranges":"bytes","Cache-Control":"no-cache","Date":"Sun, 11 Jul 2021 23:24:45 GMT","ETag":"\"{2EE55A98-2CCC-4476-8075-5521F6381CDC},3\"","Location":"https://unitedstates-002.azure-apim.net/apim/onedriveforbusiness/shared-onedriveforbu-3759cb5a-6ee4-4be9-aefd-c3f5-6b6b22e8/datasets/default/files/b%2521cMm6r297B0mxTVN63MXKFXGxXkTOcOBIu-RSOFYp9KmtW-Nf5WFdQZ3usnYP51K_.01O55YGGUYLLSS5TBMOZCIA5KVEH3DQHG4/content?inferContentType=true","X-AspNet-Version":"4.0.30319","X-Powered-By":"ASP.NET","Content-Length":"1286581","Content-Disposition":"attachment; filename=\"merged-docs.pdf\"","Content-Type":"application/pdf","Expires":"-1"},"body":{"$content-type":"application/pdf","$content":"JVBERi0xLjQKJdP0zOEKMSAwIG9iago8PAovQ3JlYXRpb25EYXRlKEQ6MjAyMTA1MzEwMDQwMDkrMDAnMDAnKQovQ3JlYXRvcihQREZzaGFycCAxLjUwLjUxNDcgXCh3d3cucGRmc2hhcnAuY29tXCkpCi9Qcm9kdWNlcihQREZzaGFycCAxLjUwLjUxNDcgXCh3d3cucGRmc2hhcnAuY29tXCkpCj4+CmVuZG9ia
Ok...I deleted Apply to each and Send Email. I then checked to make sure folders and files on OneDrive were there and were connected. They were. I ran the flow and here is the input and output.
Input...This is very large for content, so I only copied a bit of it, but it shows the input is getting everything we need.
{"host":{"apiId":"subscriptions/9f3a0e5f-8058-487f-9d45-d3ff51164c54/providers/Microsoft.Web/locations/westus/runtimes/unitedstates-002/apis/office365","connectionReferenceName":"shared_office365","operationId":"SendEmailV2"},"parameters":{"emailMessage/To":"ehb47@comcast.net","emailMessage/Subject":"2nd Qtr Statement","emailMessage/Body":"<p>Dear Partners in Ministry,<br>\n<br>\nTest...Test</p>","emailMessage/From":"Treasurer@carlislepby.org","emailMessage/Attachments":[{"Name":"Statements1.pdf","ContentBytes":{"$content-type":"application/pdf","$content":"JVBERi0xLjMNJeLjz9MNCjEgMCB
Output however is the same as before...
{"statusCode":200,"headers":{"Pragma":"no-cache","x-ms-request-id":"50e0a813-ed77-06f2-9270-234037f96c1d","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY","Cache-Control":"no-store, no-cache","Set-Cookie":"ARRAffinity=e198afec6581a1603d516688b9e05d55e216a7a6a28fad970baf7d024a095305;Path=/;HttpOnly;Secure;Domain=office365-wus.azconn-wus-01.p.azurewebsites.net,ARRAffinitySameSite=e198afec6581a1603d516688b9e05d55e216a7a6a28fad970baf7d024a095305;Path=/;HttpOnly;SameSite=None;Secure;Domain=office365-wus.azconn-wus-01.p.azurewebsites.net","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","Date":"Mon, 12 Jul 2021 00:10:26 GMT","Content-Length":"0","Expires":"-1"}}
Yes...
That is an error a bit different.
Now the issue is that the "To" field is empty, do you have it populated?
Per the output you sent previously now it seems that the email now contains attachments, if you can share a screenshot to show how the "TO" field looks now
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages