Posts

Effortless Data Import Across Multiple Companies in Business Central: A Seamless Approach Using Excel by Vishal Mittal

Image
Have you ever considered the possibility of seamlessly inserting or modifying data across multiple companies using just one Excel sheet, and all of this without any configurations in Business Central? Thinking along the same lines, I created a handy toolkit to make it easy. Let's start! We'll need an Excel sheet containing the necessary data along with a few additional basic details. Below is the design of Excel Sheet: Note:  The primary key fields should be incorporated into the initial data columns, following the same sequence as defined in the table. Let us consider a scenario where a table comprises three fields in its primary key. In the event of updating the value '3' in the B2 column, denoted as the Primary Key Count (PK Count), the system will interpret the initial three columns, commencing from the C column, as the primary key values for that particular table. How does my solution work? Prerequisite - Download the objects from the below link or get the complete...

How to flow a new field from Purchase Header to G/L Entry during Purchase Order Processing. ?

How to flow a new field from Purchase Header to G/L Entry during Purchase Order Processing. ? Lets move to the solution directly. Below is the list of tables where we need to add new field. 1. Table 38 - Purchase Header 2. Table 81 - Gen. Journal Line 3. Table 17 - G/L Entry Note: It is not necessary to create fields with the same id in above tables.  Below are the objects and their functions on which code modification is required.  1. Table 81 -  Gen. Journal Line Function :  CopyFromPurchHeader (Assignment of new field from Purchase Header to Gen Jnl Line is required) 2. Table 17 -  G/L Entry Function :  CopyFromGenJnlLine  (Assignment of new field from Gen Jnl Line to G/L Entry is required) Code Change suggested after function name is enough to pass a field from Purchase Header to G/L Entry. If you are using business central than you can subscribe onAfter events of the functions required for code modification.