Nowadays Power Platform services are associated with the SharePoint Lists and Libraries and bring up some additional properties and methods. These enable us to use modern experience in SharePoint.
Below are the new REST API added to the SharePoint List object to access the Power Automate Flows associated with the SharePoint List.
Used to get the Flows associated to the SharePoint List / Libraries using API
Below is the sample script used to retrieve the list of PowerAutomate flows associated with the SharePoint List using REST API.
The Output of the script as shown below,
DisplayName: Send a customized email when a new SharePoint list item is added
Environment Name: Default-6a0*****-****-****-****-*****69d1115
Used to get the Flow templates associated to SharePoint for creating a new FLow instance against SharePoint List / Library
Below is the sample script used to list out the templates associated with the SharePoint Lists, which are useful in creating a new flow for the Lists.
The output of the script as shown below,
Shows the information about single template. The sample format repeated for all available templates
DisplayName: Start AI Builder form processing when a new file is created
Description: Extract text from images or PDFs to columns in a SharePoint library by applying an AI Builder form processing model.