How to Add Comments to a Custom SharePoint Power Apps Form
Question details
The user wants to add comments and display the SharePoint item ID within a customized Power Apps form while maintaining the core comment functionality.
- Product
- SharePoint / Power Apps
- Device & OS
- not provided
- Scenario
- Customizing a SharePoint form using Power Apps to include a functional commenting system.
- Observed behavior
- The user needs to implement a solution to capture comments in Power Apps and send them to the corresponding SharePoint item's comment section.
Ensure you have the necessary permissions to edit the SharePoint list, customize its form, and create Power Automate flows within your environment.
Use Power Automate and SharePoint REST API
Create a Power Automate flow triggered by Power Apps that uses the SharePoint REST API to post comments to a specific list item.
Because standard Power Apps controls do not natively interact with the built-in SharePoint comments field, you need to bridge the gap using a Power Automate flow. This flow will receive the comment text and the item ID from your app, and then execute an HTTP POST request to update the SharePoint item.
Open your customized Power Apps form and insert a new Text Input control where users can type their comments.
Navigate to Power Automate and start a new flow with a Power Apps trigger. Add the 'Send an HTTP request to SharePoint' action to the flow.
Set the request method to POST. Set the URI to _api/web/lists/GetByTitle('YourListTitle')/items(itemID)/Comments(), ensuring you map the itemID to a variable passed from Power Apps.
Include the necessary JSON content headers (e.g., 'Content-Type': 'application/json'). Set the body of the request to {"text":"comment text"}, replacing 'comment text' with the dynamic text variable from Power Apps.
In Power Apps, select your form's submit button. Update its OnSelect property so that after the SubmitForm function, it calls your flow. For example: YourFlowName.Run(YourFormName.LastSubmit.ID, TextInput1.Text).
Boost Your Productivity with WPS Office
While Power Apps and SharePoint require complex workflows and API integrations for simple form features, WPS Office provides an intuitive and lightweight alternative for everyday document management, data tracking, and team collaboration. Enjoy a seamless experience without the steep learning curve.

Frequently Asked Questions
How do I retrieve the ID of a newly created SharePoint item in Power Apps?
You can access the ID of the last submitted item by using the LastSubmit property of your form. For example, use YourFormName.LastSubmit.ID in your formula right after the SubmitForm function executes.
Can I add comments to a SharePoint list without using Power Automate?
Natively, SharePoint item comments are not directly accessible via standard Power Apps form controls. While third-party custom PCF controls exist, using a Power Automate flow with the SharePoint REST API is the most reliable and standard method.
Why am I getting an error when sending the HTTP request to SharePoint?
Ensure your list title in the URI exactly matches the SharePoint list name. Additionally, check that your request headers include 'Accept': 'application/json;odata=verbose' and that a valid item ID is being passed from Power Apps.




