[Power Pages Tutorial #4] Creating a Power Page Basic Forms to Insert Data
[Power Pages Tutorial #5] Attaching Files in a Power Pages Basic Form
In this tutorial, Brian Knight from Pragmatic Works walks through how to attach files to a record in a Power Pages basic form. This feature is essential when users need to upload supporting documents such as proposals, images, or other files directly within a form.
The video builds on previous lessons and introduces both configuration steps and common challenges, particularly around permissions, which are critical for making file uploads work properly.
Understanding the Goal
The primary objective is to allow users to upload files (such as a proposal document) when creating a new record in a Power Pages portal. This involves configuring the form, enabling attachments, and ensuring proper permissions are in place.
Step 1: Enable File Attachments in the Form
Brian begins by navigating to the Power Pages environment and locating the form where the file upload feature will be added.
- Open the Power Pages portal in the correct environment
- Navigate to the desired form (e.g., a bids or proposal form)
- Access Advanced Properties via Portal Management
- Go to Additional Settings
- Enable the Attachments option
Once enabled, several configuration options become available:
- Choose storage location:
- Notes (Dataverse)
- Azure Blob Storage
- SharePoint
- Define allowed file types
- Allow single or multiple file uploads
- Set the upload field as required (optional)
- Customize validation messages
After saving these settings, the form is ready for preview. However, the upload button may still not appear.
Step 2: Resolve the Missing Upload Button Issue
Brian explains that if the upload button does not appear, the issue is almost always related to permissions. In Power Pages, users must have proper access to the underlying tables—in this case, the Notes (Annotation) table.
This is a common “gotcha” that developers encounter when working with file attachments.
Step 3: Configure Table Permissions
To resolve the issue, Brian demonstrates how to create the necessary permissions using a child permission approach.
- Navigate to Table Permissions
- Select the parent table (e.g., Proposals)
- Add a Child Permission
- Set the table to Notes (Annotation)
- Define the relationship (e.g., Proposal → Notes)
- Assign the role (e.g., Authenticated Users)
The child permission ensures that if a user has access to a parent record (like a proposal), they automatically gain access to its related notes or attachments.
Brian emphasizes that at a minimum, users need the following permissions:
- Create
- Append
- Append To
Additional permissions can be granted depending on the use case.
Step 4: Test the File Upload Functionality
After configuring permissions, the form is previewed again. This time, the upload button appears as expected.
The testing process includes:
- Creating a new record
- Entering required form data
- Uploading a file (e.g., an image or document)
- Submitting the form
Once submitted, the file is successfully stored and linked to the record.
Step 5: Verify Stored Attachments
The uploaded file is stored in the Notes (Annotation) table with a prefix (such as “web”) to indicate its origin from the portal.
Brian demonstrates how to:
- Open the associated application
- Locate the newly created record
- View the attached file
- Download or preview the uploaded content
This confirms that the attachment is properly saved and accessible.
Key Takeaways
- Enabling attachments requires both form configuration and permission setup
- The Notes (Annotation) table is commonly used for storing attachments
- Permissions are the most common reason for missing upload functionality
- Child permissions simplify access control for related records
- Testing and validation are essential to ensure everything works correctly
Conclusion
Brian Knight provides a clear and practical walkthrough of attaching files in a Power Pages basic form. By combining proper configuration with the correct permissions setup, users can seamlessly upload and manage files within their applications.
This feature enhances user experience and enables more robust data collection, making it a valuable addition to any Power Pages solution.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power Pages and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.
Sign-up now and get instant access
ABOUT THE AUTHOR
SQL Server MVP and founder of Pragmatic Works. Brian has been working with SQL Server as a DBA and business intelligence professional since 1998. He has written more than 15 books on the topic and has spoken at dozens of conferences.
Free Community Plan
On-demand learning
Most Recent
private training

Leave a comment