community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central: How to quickly check whether the user has write (Insert, Delete, and Modify) permission for the table in AL

This post explains how to use the Record.WritePermission() method in AL to check whether a user has write permissions (Insert, Delete, Modify) for a table before executing operations, allowing developers to perform alternative actions based on permission levels instead of triggering errors.

post Dynamics 365 Lab

Yun Zhu · 2025-07-15 · 431 words · about 2 min

"Record.WritePermission() Method: Determines whether a user can write to a table."

Key points

  • WritePermission() method checks if a user can write to a table, including full and partial write permissions with security filters
  • Without Insert permission, New actions are grayed out; without Modify permission, card pages open in View mode only
  • Developers can use WritePermission() to perform different operations conditionally based on user permissions
  • Example uses WritePermission() to open Vendor Card for users with write access, Customer Card for others

Quotes

  • “Record.WritePermission() Method: Determines whether a user can write to a table.” (This is the core method that enables developers to check write permissions before executing operations)
  • “A write permission consists of Insert, Delete, and Modify permissions.” (Clarifies what constitutes write permission, helping developers understand the scope of the check)

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

No source states these links: they share an object, a model read them, or a person found the same subject.

Context

  • Features: WritePermission method, permission checking, security filters, conditional page navigation

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.