Skip to main content
Answer

How to set one DAC's companyId field value into custom DAC?

  • December 5, 2022
  • 3 replies
  • 240 views

Forum|alt.badge.img

Hi All,

Could you please assist me on the below:

How to set the ServiceOrders (FSServiceOrder) DAC’s CompanyID value into my custom table CompanyID field?

As per my knowledge, the CompanyID field is not available in DAC’s. So, how to achieve this functionality?

 

 

Thanks

Nageswararao.

Best answer by Naveen Boga

@NageswaraRaoAddanki60  I’m not sure about the question. 

CompanyID cannot be referenced based on the table as this is referring to the tenant.

 

Can you please let us know why do you want to insert the CompanyID from the FSServiceOrder table?

Are you inserting multiple Companyid’s data from the same tenant?  

 

3 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • December 5, 2022

Hi @NageswaraRaoAddanki60  Even if it is a Custom table if you provide the name as CompanyID in the table (but this field is not required in the DAC) when the record is inserted automatically system will insert the Company ID into the table.


Forum|alt.badge.img

Hi @Naveen Boga ,

Yes , I know CompanyID inserted automatically.

My main aim is CompanyID Link to parent FSServiceOrder.CompanyId.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • December 5, 2022

@NageswaraRaoAddanki60  I’m not sure about the question. 

CompanyID cannot be referenced based on the table as this is referring to the tenant.

 

Can you please let us know why do you want to insert the CompanyID from the FSServiceOrder table?

Are you inserting multiple Companyid’s data from the same tenant?