06-30-2023 23:45 PM - last edited 07-01-2023 06:26 AM
Title: Create, Validate and Read Custom Form for Attended Automation in Power Automate Desktop
During automation, there arises a need to capture information from the user as part of Attended Automation. For this purpose, we could make use of the in-built Custom Form action of Power Automate Desktop (PAD) to ask the user for the required details and then transfer these details to other systems or applications.
Use the ID box (on the right hand side) for each element and give their names as per 'control naming convention' as best practices. On doing so, the Form structure would look like the below.
And what you write in the 'Label' section will show up next to that control as a Label.
The output after running it in real time would be as below. It won't accept if the first name is not at least 2
characters long. This is just an example regex and the intent is to show how to use a regex for validation of fields like names, email addresses or phone numbers.
You can also give a minimum and maximum value for a Date Field and an error message accordingly.
Click the 'i' information button to read about the Regional Format settings. Currently they appears as
textboxes. Hopefully, Microsoft changes these to DatePicker and Time controls in future releases.
Output after running the Form: The year entered is 2024.
Good Luck and Happy Automation!