How to Include Permission Set in Business Central Extension

15

So everybody aware that including permission set in app development is mandatory ,By using this permission one can use designated app.

Today we will see how we can create permission set and include in your extension.

Go to Role tailored client and create new permission set.(This can done by either manually or by recording permission

I created simple permission set as below

cronusper

Once permission set is create then you need to export this to .xml file which can be used to create permission set in Business central via extension.

For exporting newly created permission set I used PowerShell command as below.

Import-Module ‘C:\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client\Microsoft.Dynamics.Nav.Apps.Tools.psD1’
Export-NAVAppPermissionSet -Path C:\SourceFolder\demopermissions.xml -PermissionSetId DEMOSET -ServerInstance DynamicsNAV110 -Force -PassThru

Above command will create .xml file in designated folder.

Now copy this file and paste it in you app folder where all extensions file are stored

After copy this file publish the app and check in permission set of business central. One can see newly created permission set added.

demoset

How cool and simple is this…

Stay tuned  for more…

 

 

 

 

 

Advertisements

One thought on “How to Include Permission Set in Business Central Extension

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s