Get the vendor Name Create Computed coloum in data entity

 private static str getVendorNameSql()

    {

        str getVendorNameSql = strFmt(@" select Name from DirPartyTable

            JOIN VendTable on DirPartyTable.recid = VendTable.Party

            WHERE VendTable.AccountNum = %1",

            SysComputedColumn::returnField(tableStr(IGPS_PurchOrderAccrualEntity), dataEntityDataSourceStr(IGPS_PurchOrderAccrualEntity, IGPS_PurchOrderAccrual), fieldStr(IGPS_PurchOrderAccrual, VendAccount)));


        return getVendorNameSql;

    }

Comments

Popular posts from this blog

Customization on Sales invoice Report in D365 F&O

75) COC - Create a coc of the table modified method

46) D365 FO: SHAREPOINT FILE UPLOAD USING X++