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
"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.
- codeunit 7499 “Item From Picture”
- table 23 “Vendor”
- table 18 “Customer”
- page 26 “Vendor Card”
- page 21 “Customer Card”
- page 31 “Item List”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- 20260713 - From Zero to Agent Building agents in Business Central — possibly related: both name Page 31 “Item List”
- Allow Over Receipts of Products — possibly related: both name Page 26 “Vendor Card”
- Business Central 2025 wave 2 (BC27): Add more fields and columns by personalizing pages — possibly related: both name Page 26 “Vendor Card”
- Business Central 2026 release wave 1 (BC28): Calculate withholding taxes for vendors (Withholding Tax) — possibly related: both name Page 26 “Vendor Card”
- Business Central 2026 release wave 1 (BC28): Define item attributes for item variants — possibly related: both name Page 31 “Item List”
- Business Central 2026 release wave 1 (BC28): Use self-billed invoices — possibly related: both name Page 26 “Vendor Card”
- Comparing the Pay Vendor Process in Dynamics SL with Dynamics 365 Business Central — possibly related: both name Page 26 “Vendor Card”
- Deploy Analysis Views with AL Code in Business Central 2026 Wave 1 (No Manual Setup) — possibly related: both name Page 31 “Item List”
- Dynamics 365 Business Central Blog Series: Item Attributes — possibly related: both name Page 31 “Item List”
- Dynamics 365 Business Central: How to add Filter by item attributes to the Item Ledger Entries page — possibly related: both name Page 31 “Item List”
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.