This is a demo of how to reshape JSON with Azure Functions.
Example:
add row id
Input:
[ { "ID": 1, "Title": "T1" }, { "ID": 3, "Title": "T3" }, { "ID": 5, "Title": "T5" } ... ]
Output:
[ { "RowID": 1, "ID": 1, "Title": "T1" }, { "RowID": 2, "ID": 3, "Title": "T3" }, { "RowID": 3, "ID": 5, "Title": "T5" } ... ]
Flow chart:
graph TD;
PowerApps-->SharePoint;
PowerApps-->CustomConnector;
CustomConnector-->AzureFunctions;
AzureFunctions-->CustomHandler;
Prerequisites
- Power Apps(premium) & SharePoint licenses
- Azure subscription
- Clone the github repo to local.
- Create the Function App in Azure and deploy the function.
- Import the Postman collection and verify the API(addrowid).
- Set up the custom connector in Power Apps make portal.
- Create the SharePoint list.
- Open the Power Apps from the portal, replace the custom connection and SharePoint list to verify if the function works.
Please check more details in the folders.