Introduction:

With the release of Business Central, Extensions have gained its popularity. Here I’ll be adding field to existing page Blanket Purchase Order using Visual studio code (VS Code)

Pre-requisites:

  • VS Code
  • Business Central Online

Steps:

  1. Create a table extension, extending standard table Purchase Header.

t1

t2

t3

t4

2. Create your page extension, here, I’m adding the fields at the last of the General tab. Here you need to set the property ApplicationArea= All on all fields.

3. Here, I’ve changed the caption of Purchase Code to Traders, changed visibility of Status field and then added the new fields at the end of the General tab.

t5

t6

4. Add your launch.json file. Here add your tenant name

6

5. Add app.json file

7

6. You’ll get a prompt to download symbols. click on yes.

7. After the symbols are downloaded successfully, click on (Ctlr+shift+B) to build the package.

8. To publish the package click on (Ctrl+F5). This will publish your extension in the sandbox environment. A .app file is created after you publish your extension.

9. To publish your extension in Production environment, open Business Central (Production Env.) search Extension management, click on upload extension.

t9

10. Select the .app file created. Enable Accept and click on Deploy.

t10

11. Click on Deployment status button, to view status of the .app file.

t11

 

12. Navigate to Extensions Management in Business Central.

t8

 

t7

Cheers!

download