web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Adding Permission Sets using VS Code for Business Central Extensions

Syed Mehdi Profile Picture Syed Mehdi 5

The Permissions for the Objects in the Extension resides in the Extension itself as an XML file. The Objects will give error if not mentioned in the Permissions XML as by default the Permissions Sets are not available for Custom Range Objects. Once the App is published, the Permissions defined in the Permissions XML creates Permissions in the Tenant Permission Set and Permissions Tables.

The Permissions Sets XML file for any AL Project can be generated by an Automated process. The Steps are given as follows:

  • In VS Code, open any Project which contains the AL Objects like Pages, Tables, Codeunits, Queries and XMLPorts.
  • Open the Command Pallete using Ctrl+Shift+P or F1 keys and type and select the option AL: Generate Permission Set containing current extension object

Once you have followed the above simple steps, your Permission Set XML gets generate which looks like the one in the screenshot below.

Thanks for Reading!


This was originally posted here.

Comments

*This post is locked for comments