Logo

dev-resources.site

for different kinds of informations.

From Template to Tailored:The Power Platform Way

Published at
11/11/2024
Categories
powerfuldevs
powerplatform
powerautomate
Author
balagmadhu
Author
10 person written this
balagmadhu
open
From Template to Tailored:The Power Platform Way

Intro:
In today’s fast-paced business environment, efficiency and automation are key to staying ahead. Imagine a scenario where various teams within your organization need to generate Non-Disclosure Agreements (NDAs) quickly and accurately. Manually creating these documents can be time-consuming and prone to errors. By using Microsoft Forms as a trigger, we’ll collect the necessary information from users, pick a Word template from OneDrive, and populate it with the provided data. Finally, we’ll automate the process of emailing the completed NDA to the requester

Conceptual Architecture:

The below diagram illustrates the process from the user submitting the form to the final step of emailing the populated NDA

Image description

Logics in actions:

Some Business Logic to populate the word template were as below

1) Few Date Manipulation - all the dates are dummy values but were pulled / mapped from the Microsoft FORM template

To get the year of contract created

Year(DateValue("2024-09-11"))
Enter fullscreen mode Exit fullscreen mode

To get the month of the contract created

Text(DateValue("2024-09-11"), "mmmm")
Enter fullscreen mode Exit fullscreen mode

To calculate the no of terms of contract

RoundUp(DateDiff(DateValue("2019-06-01"), DateValue("2024-01-01"), TimeUnit.Years), 0)
Enter fullscreen mode Exit fullscreen mode

To populate dates for periodic review
adds a specified number of units to a date value. In this case, you’re adding 425 days to the date “2024-01-01”.

DateAdd(DateValue("2024-01-01"), 425, TimeUnit.Days)
Enter fullscreen mode Exit fullscreen mode

2) Had to create a custom connector to convert numbers into string / text as legal documentation you specify the value of the contract in text.

DEMO:
The demo is just a proof of concept as the solution was specific to the problem solving / opportunity I was exploring

Unit test to mimic the data from MS form

data Input

The email attached with the updated working document
email

The “Populate a Microsoft Word template” action in Power Automate can be incredibly versatile and useful in various business scenarios like

powerautomate Article's
30 articles in total
Favicon
Building a Smart Feedback Agent with Copilot Studio, Adaptive cards and Power Automate
Favicon
How to Publish a Power Platform Connector
Favicon
Looking for a mentor who could lead me to a right way for RPA developers
Favicon
How to Shutdown Azure VM
Favicon
The Art of Over Engineering on the Power Platform
Favicon
Invoke an HTTP request without a premium license: connectors summary
Favicon
What is Power Automate: A Complete Guide
Favicon
Get SharePoint library info from Teams context
Favicon
Think You Know Teams Chats? Discover the Workflows
Favicon
AWS Resource Listing Script: A DevOps Shell Scripting Project
Favicon
From Template to Tailored:The Power Platform Way
Favicon
Power Automate vs UiPath: Choosing the right automation tool
Favicon
Hacking Excel Files in Power Automate
Favicon
My Power Platform - Your Year in a Dashboard
Favicon
Power Automate - Handling XML
Favicon
Let's Talk About the Power Platform Dataverse For Teams
Favicon
Securing Plain Text using SHA hashing: SHA-256 Sorcery
Favicon
Mastering Tiered Pricing for Business Growth: A Detailed Guide
Favicon
Dataverse Security Roles
Favicon
Becoming a Power Platform Developer: A Beginner’s Guide
Favicon
Power Platform - Direct to Prod?
Favicon
Power Automate - How to Fix Missing Dependencies
Favicon
Power Automate - Expressions
Favicon
Updating SharePoint items without modifying System columns
Favicon
Power Automate - The Code Review Onion
Favicon
Use Client API Object model in Power Apps
Favicon
Power Up Your SharePoint Embedded Solutions with the Starter Kit
Favicon
Data Source Environment Variables in Power Automate actions
Favicon
Simplify Workflows Using Microsoft Power Automate and Syntex
Favicon
Extract table data from Documents using Azure AI Document Intelligence

Featured ones: