logo
search
SharePoint Document Issues

How to Add Comments to a Custom SharePoint Power Apps Form

Maira MehtabMaira Mehtab Sep 27, 2026 869 views

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.
Before you start

Ensure you have the necessary permissions to edit the SharePoint list, customize its form, and create Power Automate flows within your environment.

Solution 1Recommended

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.

1
Add a text input in Power Apps

Open your customized Power Apps form and insert a new Text Input control where users can type their comments.

2
Create a Power Automate flow

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.

3
Configure the HTTP request

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.

4
Set the request headers and body

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.

5
Call the flow 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).

API Endpoint Details: Make sure to replace 'YourListTitle' with the exact title of your SharePoint list. The list title is case-sensitive.
Free Microsoft Office alternative

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.

Highly compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight and fast, ensuring smooth performance on any device.Includes built-in collaboration and commenting tools for effortless document review.Free to use with a familiar, easy-to-navigate user interface.
QA img-9

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.