CODE TO ADD A NOTE IN A DOCUMENT REFERENCE
FOR A TABLE
static void TabledocuAdd(Args _args) {
DocuRef docuRef;
VendTable vendTable;
vendTable =
VendTable::find('123');
docuRef.RefCompanyId
= vendTable.dataAreaId;
docuRef.RefTableId =
vendTable.TableId;
docuRef.RefRecId = vendTable.RecId;
docuRef.TypeId = 'Note';
docuRef.Name = 'Imported';
docuRef.Notes =
'This vendor was imported.';
docuRef.insert();
}
No comments:
Post a Comment