CRMJettyBack to crmjetty.comContact us
Menu
Docs / Guides

CRMJetty Portal

Works with
Docs / Dynamics 365

Dynamics 365 Customer Portalv6.3.0

Docs / Salesforce

Salesforce Customer Portalv6.3.0

Docs / Business Central

Business Central Portal

Guides / Lists

How to Let Portal Users Delete Records in Bulk

4 min readUpdated
Short answerGive the portal user role Delete permission on the entity in Settings → User Settings → Portal User Roles. Then turn on Allow Deleting Records in the List widget settings and publish the page. Portal users select the records in the list and select Delete.

Portal users can clean up records they no longer need, such as old draft orders or duplicate contacts, by selecting several records in a list and deleting them in one step. Two settings must both allow it: the portal user’s role and the List widget that shows the records.

Important: A record deleted from the portal is also deleted in your CRM. Records that your CRM’s deletion rules block (for example, a contact linked to other records) stay, and the portal shows the CRM’s error. The portal user also needs Delete permission on that record type. Deletion can’t be undone from the portal, so test on a sandbox or a few non-critical records before you turn this on for portal users.

Before you start

Give the role Delete permission

  1. Go to Settings → User Settings → Portal User Roles.
  2. Select the three dots (…) next to the role, then select the Edit icon.
  3. In Entity Permissions (Business Central: Table Permissions), find the entity.
  4. Select View, then select Delete.
  5. Select Save.
Entity Permissions on the edit role page with View and Delete selected for an entity
Entity Permissions on the edit role page with View and Delete selected for an entity
Entity Permissions on the edit role page with View and Delete selected for an entity
Entity Permissions on the edit role page with View and Delete selected for an entity

For details, see How to Set Add, Edit and Delete Permissions by Role.

Turn on deletion in the List widget

  1. Go to Design → Page Builder and open the page with the list in edit mode.
  2. Select the Settings icon on the List widget.
  3. Under Allow Deleting Records, turn on the Deleting toggle.
  4. Optional: in Select Trigger, choose a trigger to run when a portal user deletes records, for example to notify your team.
  5. Select Save.
  6. Publish the page.
List widget settings with the Deleting toggle on under Allow Deleting Records and the Select Trigger drop-down
List widget settings with the Deleting toggle on under Allow Deleting Records and the Select Trigger drop-down
List widget settings with the Deleting toggle on under Allow Deleting Records and the Select Trigger drop-down
List widget settings with the Deleting toggle on under Allow Deleting Records and the Select Trigger drop-down

For how to set up the trigger, see How to Automate Portal Emails with Triggers.

How portal users delete records

  1. Open the page with the list.
  2. Select the checkbox next to each record to delete.
  3. Select Delete.

Important: Treat a delete from the portal as permanent. The portal works on your CRM records directly; it doesn’t keep a separate copy to restore from.

Stop deletion for some records

The role’s Delete permission covers every record of the entity the user can reach. To block deletion only for certain records, for example closed cases, add an Update Assigned Rights workflow in Settings → Portal Settings → Workflow Management and select it in the List widget’s Update Assign Rights Workflow setting.

See How to Restrict Record Access with Conditional Workflows.

Troubleshooting

Portal users don’t see a Delete option: Check both settings. The role needs Delete on the entity, and the List widget needs Deleting turned on. Publish the page after you change the widget.

Some records can’t be deleted: An Update Assigned Rights workflow may disable deletion for those records.

Did this solve it?No, contact support