cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Erthling
Frequent Visitor

Signed Employee Certificate (Word to PDF) from MS Form Request

Hi all,

 

I have created a Form that employees can fill out with their details that would request for a Salary, NOC or Employment certificate.

How can this request automate and provide the matching certificate form (see attached) pull the corelating Word template, place the name and required details, have the digital signature then convert it to PDF and email it to the employee?

 

Employee Certificate Request Form.jpg

 

Many thanks,

1 ACCEPTED SOLUTION

Accepted Solutions

@Erthling 

1) MS Form send the dates as a string and you need to format using either native expressions or Encodian's Utility - Format Date action (this is a Utility action i.e. only uses 0.05 credits).

If you use expressions, wrap your Submission date dynamic value in a formatdatetime('dynamic value from form','date formate') expression. For example, the below would return a form submission from today as 25-08-23 in the Word document.

AlexEncodian_1-1692971224563.png


Alternatively, you can convert dates using Encodian. The below example would output the submission date for a form submitted today as 25-Aug-23...then use the output from this action in your JSON

AlexEncodian_2-1692971343514.png

 

2) This is how Excel stores dates (an integer counting up from 1st Jan 1900 i.e. 2=02-Jan-1900 and 40,000 = 06-Jul-2009). To get date formats, switch to ISO 8601 format in your excel action. Note, you will still need to format this date like in step 1.

AlexEncodian_3-1692971552669.png


3) You are specifying the file name as a dynamic result from one of the Encodian actions. I can't tell which one. If you want a different file name, then you need to insert the correct one...its up to you (or change the output of that Encodian action).

AlexEncodian_4-1692971709268.png

 




View solution in original post

11 REPLIES 11
Erthling
Frequent Visitor

If there is a better method, I am open to all suggestions of course.

@Erthling 

Hi, here's a blog article showing you how to Mail Merge Word Document with Microsoft Forms Response. You can quite easily build a flow to choose the correct template based on the a form response to the "Type of Certificate" question.

Do you need to bring in external data however? e.g. salary data? Then you need to see where this is stored and how you can bring it into your flow. The easiest would be if its stored in a SharePoint list and you can retrieve it in your flow to populate the document.

You can then convert the Word document to PDF and apply a digital certificate using Sign PDF to certify the document.

Erthling
Frequent Visitor

Hi @AlexEncodian, and thanks for your support and input.

 

I was thinking if there's a simpler method (as per HR's demands to get all the data from their Excel) where I can have 2 fields only in the Salary Certificate Request MS Form with the user only putting his 'Full Name' and 'Email Address' (Email being the trigger link to getting the user's data from Excel.

 

Once the email address is captured, the details are triggered from HR's Excel sheet which has all the users' data that would be placed into the Template Word document that would have the Plain Text Content for the Bolded/Underlined in this format:

 

--------------------------------------------------------------

'Date of Request' (can be generated based on the time of Form request)            'Internal doc reference: XYZ'

 

To whom it may concern, 

Ref: Salary Certificate 

 

Dear Sir/Madam, 

 

We hereby confirm that 'First Name' ​'Last Name' is an employee at XYZ company. 

 

He/She is presently working in the capacity of ​'Position' with a total remuneration of 'Salary' per month, including fixed allowances. 

 

This letter is issued upon the employee’s request, and it does not constitute a financial guarantee on our part. 

  

With best regards, 

 

'Signature/Company Stamp pic'

 

(HR manager name)

Human Resources Department Manager 

--------------------------------------------------------------

 

 

It's just that I'm so new at this....

@AlexEncodian

 

 The user's data (1st/2nd Name, salaries, email addresses and positions) are stored in an excel sheet.  Shouldn't that be enough as the data source to populate the word file template (non-premium) just by triggering the flow from a simple MS Form that the user puts in his email address only?

 

So, MS Form ---> Get Data from Excel (1st/2nd name, salary, position in company, joining date) + add date of file creation ---> Populate into a Word Template (non-premium way) ---> Convert to PDF (Digitally sign) --->Delete Word file ---> Email user with attachment.

 

How would the Workflow/Formulas/Variables be to get the matching data to the Word file with the plain content holders?

 

Much appreciated.

@Erthling 

yes - Excel as a data source would work as well. In a little more detail, the flow would look something like this:

1. When a form response is submitted
2. Get form response details
3. List rows present in a table (excel data)
4. You'll have to filter the Excel data via a unique identifier from your form response e.g. user email...to get the correct row
5. Populate Word document with the Excel data and form response
6. Convert to PDF
7. Sign PDF

Note, Microsoft's Populate Word connector is a premium connector. I'm not sure what you meant by non-premium i.e. whether you meant not 3rd party or not premium Power Automate licensing.

@AlexEncodian 

 

Hi Alex, yes, we don't have MS 365 premium, and a workaround for that I found on youtube is to create a Sharepoint site with adding columns that match the required data, that eventually populates into the Word template (eventually to PDF).

 

Still trying to figure it out, but when I prompted Bing Chat to trigger getting the data from Excel, these are the steps it gave me to create:

 

Erthling_0-1692785696275.png

 

Trying to use this method but to do the workaround using Sharepoint to Word extra step.

Can the Word doc be created instead using the Encodian option? (Like I said, I'm very Very new to all of this)

@Erthling 

The ChatGPT solution still uses Microsoft's Populate Word connector at the end. The SharePoint bit is just a data source. As I said, you can also use Excel (as per the steps I showed above).

As I said, Microsoft Populate Word is a premium connector. If you don't have access, you can use Encodian's connector which also has a Populate Word action (but it requires a separate subscription for over 50 actions per month).

This blog article shows you all the steps: Mail Merge Word Document with Microsoft Forms Response


Sure - that could work. Sometimes you just have to start building to see what nuances come up. Good luck

Hi again @AlexEncodian,

 

Alright, so i did get the whole flow to work using Encodian, however, I just have 3 small issues that I need help with.

 

1) When I fill in the JSON info that gets extracted from the Excel (employees data sheet), 1 of the Dynamic contents is adding the submission time to be reflected in the final PDF certificate, and by using the submission time captured by the MS Form function is giving the full Date & Time including the Hour and Seconds.... 

 

2) When adding the employee dateofJoining in the company, the date format in excel is 'Date', yet in the word/pdf output result is showing a complete calculated number with comma (like an addition or division)

 

What other way can I add just the day/month/year and the employee joining date correctly?

 

Salary Certificate Workflow 1.png

 

The output in the PDF demo file is as follows:

 

Salary Certificate Result.png

 

 

Last but not least, the name of the generated PDF is showing correctly in the folder repository (Generated Certificates folder), however in the email, the attached file name is simply result.pdf. 
Why/How/What???

 

Attachment Name.png

 

The workflow is as follows:

 

Salary Certificate Workflow End.png

@Erthling 

1) MS Form send the dates as a string and you need to format using either native expressions or Encodian's Utility - Format Date action (this is a Utility action i.e. only uses 0.05 credits).

If you use expressions, wrap your Submission date dynamic value in a formatdatetime('dynamic value from form','date formate') expression. For example, the below would return a form submission from today as 25-08-23 in the Word document.

AlexEncodian_1-1692971224563.png


Alternatively, you can convert dates using Encodian. The below example would output the submission date for a form submitted today as 25-Aug-23...then use the output from this action in your JSON

AlexEncodian_2-1692971343514.png

 

2) This is how Excel stores dates (an integer counting up from 1st Jan 1900 i.e. 2=02-Jan-1900 and 40,000 = 06-Jul-2009). To get date formats, switch to ISO 8601 format in your excel action. Note, you will still need to format this date like in step 1.

AlexEncodian_3-1692971552669.png


3) You are specifying the file name as a dynamic result from one of the Encodian actions. I can't tell which one. If you want a different file name, then you need to insert the correct one...its up to you (or change the output of that Encodian action).

AlexEncodian_4-1692971709268.png

 




Thanks again, i'll try and do that now and report back to you before going off for the weekend!

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

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!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

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  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

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.    

Updates to Transitions in the Power Platform Communities

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

Users online (1,199)