Loading...

Power Pages – Delete Operation using WebAPI

Power Pages – Delete Operation using WebAPI
Delete Operation: The DELETE method deletes an existing record by its ID. The record ID is included in the URL, and the response indicates whether the deletion was successful. Use DELETE to remove a record based on its ID. To delete an existing record, you can use the DELETE method. Below is a sample code snippet to delete a contact record by its ID. Delete Operation Using JQuery: $(document).ready(function() {$(‘#deleteButton’).click(function() {const contactId = ‘your-contact-id-here’; }); Delete Record (DELETE) function deleteContactRecord(contactId) {$.ajax({type: “DELETE”,url: /_api/contacts(${contactId}),headers: {“Accept”: “application/json”,“OData-MaxVersion”: “4.0”,“OData-Version”: “4.0”},success: function () {console.log(“Record Deleted”);},error: function (xhr) {console.error(“Error Deleting Record: “, xhr.responseText);}});} Web Template: Delete Record (DELETE) Scenario: Delete a Contact Record Using Web Template <script> function deleteContact(contactId) { […]

Published on:

Learn more
Invent CRM
Invent CRM

Surya's MS CRM Blog

Share post:

Related posts

New in Spring 2024: Map Routing and Visualization for Power Pages Portals

“Morning Jo, what is the Tea this morning?”, Josh asked as he rushed into the office. “Well, Maplytics is now available in Power Pages Portals...

2 days ago

Simplify Record Search in Power Pages with Natural Language Search

Power Pages makes it relatively straightforward to build business portals. However, as the amount of data grows, helping users quickly find th...

2 days ago

How to Backup a Microsoft Power Pages (Power Apps Portals) Website

Microsoft Power Pages (formerly known as Power Apps Portals) is a low-code platform for building secure, external-facing websites that integra...

3 days ago

AI-Powered Smart Form in Power Pages Part 4: Dataverse Save, Testing & Production Checklist

Inject AI metadata into hidden fields before submission, add the new_originaltext and new_aiconfidence columns to your ent...

6 days ago

Configure authentication with Security Agent in Power Pages

As part of the 2026 Release Wave 1, Microsoft introduced the Security Agent in Power Pages to help makers configure and improve website securi...

9 days ago

Add AI-Powered Search Capabilities to Your Power Pages Site

Finding information quickly is one of the most important aspects of any website. As Power Pages sites grow with knowledge articles, documentat...

21 days ago

AI-Powered Smart Form in Power PagesPart 3: Portal HTML & JavaScript Smart Fill Engine

The complete Power Pages page layout — AI input panel HTML, dark widget CSS, and the full JavaScript engine that maps extracted fields to your...

29 days ago

Microsoft Power Pages General Availability (GA): What's New in 2026

Most businesses have a portal idea sitting in a backlog somewhere. A customer self-service site. A partner hub. An employee request portal. Th...

1 month ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy