I have a question regarding the customization in D365FO.
I have a requirement to create two checkboxes field in a custom table, named ADS_SalesOrderCBTable. The table is added as the formDataSource in the SalesTable form.
The table contains one field which needs to store the SalesId. I have created the foreign key relation to the custom SalesId field.
However, I find that when I create the sales order and check the checkbox field, the SalesId will not the stored in the custom table. There is only the checkbox value recorded.
So I would like to ask to get the SalesId value into my custom table, ADS_SalesOrderCBTable, is it I need to write some code such as initFrom in the table to get the SalesId from my sales order? If yes, the initFrom method should be called in the form class, am I right?
Kindly please correct me if I get anything wrong.
Thank you.
Regards,
Yue Zhen