Skip to main content
Answer

What is the way to add fields to my own custom table after publishing

  • August 27, 2021
  • 2 replies
  • 901 views

Forum|alt.badge.img+7

What’s the best practice for adding fields to my own custom table after the customization has been published?

Should I create an extension for my own table or can I generate a script to update the table as if the fields had always been there?

Best answer by Naveen Boga

Hi @ddunn  For Custom table extension is NOT required and you can do this two ways.

  1. If you have an access to the SQL Server, add your fields directly database to that particular table and then go to the customization project → Database Scripts → Click on the RELOAD FROM DATABASE action, so that newly added fields will be added to package.
  2. If you don’t have an access to SQL Server, then directly you can open the customization projects, and go to the File menu → Edit Project Items → Select the table → then add fields manually in source window and publish the package.

Since I’m a developer I always go with the 1st option.

2 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • August 27, 2021

Hi @ddunn  For Custom table extension is NOT required and you can do this two ways.

  1. If you have an access to the SQL Server, add your fields directly database to that particular table and then go to the customization project → Database Scripts → Click on the RELOAD FROM DATABASE action, so that newly added fields will be added to package.
  2. If you don’t have an access to SQL Server, then directly you can open the customization projects, and go to the File menu → Edit Project Items → Select the table → then add fields manually in source window and publish the package.

Since I’m a developer I always go with the 1st option.


Forum|alt.badge.img+8
  • Captain II
  • January 3, 2024

Hi @Naveen Boga,

 

Are there any benefits to the first option that don’t come with the second?

 

Thanks,

Aleks