web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating schedule flow
Power Automate
Unanswered

Creating schedule flow

(0) ShareShare
ReportReport
Posted on by 6

Hi, I'm trying to create a schedule flow which will grab files automatically from Onedrive for business (uploaded by different user during 1st to 15th) on every 16th of the month, convert every file into different PDF (not to merge the files), and email the files (in PDF as attachments) to Manager1 & cc to respective user. You may refer below table for better understanding.

USERNameUser1User2User3
Datereport submission as attachment from MS Formreport submission as attachment from MS Formreport submission as attachment from MS Form
1-Jan√√ 
2-Jan  âˆš
3-Jan âˆš 
4-Jan√  
4-Jan  âˆš
6-Jan   
7-Jan âˆšâˆš
8-Jan   
9-Jan âˆš 
10-Jan  âˆš
11-Jan√  
12-Jan  âˆš
13-Jan âˆš 
14-Jan  âˆš
14-Jan√  
every 16th 00:00 hourConvert 4 files from onedrive for business submitted by User1 to PDF and email these 4 PDF files (as attachment) to manager1 & cc to User1Convert 5 files from onedrive for business submitted by User2 to PDF and email these 5 PDF files (as attachment) to manager1 & cc to User2Convert 6 files from onedrive for business submitted by User3 to PDF and email these 6 PDF files (as attachment) to manager1 & cc to User3

Can anyone help me on this? 

Categories:
I have the same question (0)
  • hemrhk Profile Picture
    361 on at

    To create a scheduled flow follow the below link,

    https://docs.microsoft.com/en-us/power-automate/run-scheduled-tasks 

    Get the files based on user using Onedrive business actions.

    Use the "Create file" action in onedrive to create a pdf file, refer the sample post to create pdf.

    https://365stack.in/index.php/2021/09/17/powerapps-print-form-to-pdf/ 

    To add attachments to email follow the below post, here sharepoint is used.

    https://365stack.in/index.php/2021/11/19/how-to-add-dynamic-attachments-in-power-automate-send-email-action/ 

  • Johnson_Bong Profile Picture
    6 on at

    hi @hemrhk ,

    thanks for the information, with the file / link you shared, I can create schedule flow, convert files to PDF and send files as attachments.

     

    However, there are some important steps that missing in between

    1. how can flow define 15 files uploaded (as sample attached above) from 1st to 15th is from which user and make sure it convert to PDF and email back to the same user?

    2. how can flow define those files that already sent on 16th Jan and will not resend again on 16th Feb?

  • hemrhk Profile Picture
    361 on at

    1. Can you create all the files in "Not Processed" folder and get the files from that folder, I hope we can get the email address of the person who created the file.

    2. Once the file is sent, Create the files in "Processed" folder and delete the file from "Not Processed" folder.

  • Johnson_Bong Profile Picture
    6 on at

    @hemrhk thanks for the detail.

     

    But too bad i still cannot get the flow right.

     

     

  • v-JessicaG-msft Profile Picture
    Microsoft Employee on at

    Hi @Johnson_Bong ,

     

    Do you want to convert files uploaded by different users of MS Form to PDF on the 16th of each month and send the PDF files to manager1 & cc the corresponding users of submit MS Form?

     

    I used to create two flows to fulfill the requirements: the first flow to convert files uploaded by different users into PDFs and save them in folders (different users create different folders). The second flow to send emails to the corresponding users with the files in different folders and delete the PDF files in the folders after the emails are sent successfully.

     

    I have test for your reference, please try the following workaround:

     

    create folders:

    vJessicaGmsft_6-1640949395112.png

     

    flow1:

    vJessicaGmsft_0-1640947698688.png

    vJessicaGmsft_1-1640948153415.png

     

    flow2:

    vJessicaGmsft_2-1640948467374.png

    vJessicaGmsft_3-1640948926231.png

     

    vJessicaGmsft_4-1640949032410.png

    vJessicaGmsft_5-1640949099733.png

    JSON:

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "name": {
     "type": "string"
     },
     "link": {
     "type": "string"
     },
     "id": {
     "type": "string"
     },
     "type": {},
     "size": {
     "type": "integer"
     },
     "referenceId": {
     "type": "string"
     },
     "driveId": {
     "type": "string"
     },
     "status": {
     "type": "integer"
     },
     "uploadSessionUrl": {}
     },
     "required": [
     "name",
     "link",
     "id",
     "type",
     "size",
     "referenceId",
     "driveId",
     "status",
     "uploadSessionUrl"
     ]
     }
    }

     

    Best Regards,

    Jessica Gu

     

  • Johnson_Bong Profile Picture
    6 on at

    Hi @v-JessicaG-msft,

    Good day to you.

    Yes, you are right, I need a flow to convert files uploaded by different users of MS Form to PDF on the 16th of each month and send the PDF files to manager1 & cc the corresponding users of submit MS Form.

     

    I've created flow1 and test run successfully.

     

    There is a step where I've changed from "Get file content using path" to "Get file metadata" to ensure the flow1 running smoothly to save the file in PDF to specific folder assigned.

    Capture1.PNG

    Secondly, instead of using "condition" flow to direct the PDF file to save in which folder, I also did some improvement on flow which I create folders by naming them using responses email address and direct the flow to save specific file from each responses email to the correct folder. This steps increase the working capacity of the flow by not limiting to a few user that we build into the flow itself.
    Capture.PNG

    However, when I creating flow2 by following your suggestion, I found out that there are limitation on the number of user to this flow, is there any other way to work around to expend the number of user instead of building the user onto the flow

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard