Dynamics 365 FO - Howw to make a Change Tracking Entity in D365 FO
Nghia Song - Microsoft Dynamics 365 Technical Consultant
Nghia Song
Tel - WhatsApp: +84967324794
Email: songnghia.uit@gmail.com
We need to write a custom method name defaultCTQuery base on the relation of 2 tables
public static Query defaultCTQuery()
{
Query q;
q = new Query();
QueryBuildDataSource qbd = q.addDataSource(tablename2id('Table1'));
qbd = qbd.addDataSource(tablename2id('Table2'));
qbd.relations(false);
qbd.addLink(fieldName2Id(tableName2Id('Table1'),'RelationField'),fieldName2Id(tableName2Id('Table2'),'RelationField'));
return q;
}
No comments:
Post a Comment