In my previous posts Creating and removing N:N relationship between Dataverse records using Javascript and Power Pages Web API I showed how we can leverage the Power Pages Web API to handle single N:N associate and disassociate requests for a custom N:N relationship between Accounts and Contacts, and also in the following post Generic JavaScript Functions to Associate and Disassociate Dataverse records using the Power Pages Web API, I brought revisited versions of functions to handle the Associate and Disassociate process for any table.
In case we want to handle multiple requests, we need to develop some extra handling and implement function calling for arrays of IDs.
In this post I will bring a new function to handle multiple requests.
Prerequisites
- All required fields (including the N:N relationship name) in the code must be enabled for the WebAPI for the Power Pages site where you wish to run the code creation via Web API
- The WebAPI Wrapper code must be added to the…
Source link
More About This Author
-
SharePoint and Office 365 Consultant/Developer always trying to get the best from Microsoft stack (Microsoft 365/Azure/Power Platform and related stuff).
Living in Ireland since 2018, I had previously worked in Brazil as a consultant/developer for Office 365, SharePoint and related technologies for almost 10 years.
Array
- Modern Workplace7 September 2024Power Pages: Use a custom Rich Text Files table to store images (and avoid exposing the full msdyn_richtextfiles table)
- Modern Workplace2 September 2024Power Pages: Display images from a Rich Text field using Liquid
- Modern Workplace17 August 2024Hiding the ‘Forms’ button in a SharePoint list view using List Formatting
- Modern Workplace10 August 2024Power Pages, FetchXML and Liquid: Group results by Lookup fields