Hi 

I wrote a cutom query for enabling change tracking on an entity which looks like this:

Query markupTransQuery = new Query();

var markupTransDS = markupTransQuery.addDataSource(tableNum(MarkupTrans));
markupTransDS.addRange(fieldNum(MarkupTrans, ModuleType)).value(queryValue(MarkupModuleType::Vend));

var agreementLineDS = markupTransDS.addDataSource(tableNum(AgreementLine));
agreementLineDS.addLink(fieldNum(MarkupTrans, TransRecId), fieldNum(AgreementLine, RecId));
agreementLineDS.addLink(fieldNum(MarkupTrans, TransTableId), fieldNum(AgreementLine, TableId));
agreementLineDS.joinMode(JoinMode::InnerJoin);
agreementLineDS.fetchMode(QueryFetchMode::One2One);

var purchAgreementHeaderDS = markupTransDS.addDataSource(tableNum(PurchAgreementHeader));
purchAgreementHeaderDS.addLink(fieldNum(AgreementLine, Agreement), fieldNum(PurchAgreementHeader, RecId));
purchAgreementHeaderDS.joinMode(JoinMode::InnerJoin);
purchAgreementHeaderDS.fetchMode(QueryFetchMode::One2One);
return markupTransQuery;

I am using this entity to push data in BYOD.

All scenarios are working fine except delete actions. My query is not able to track delete actions so when I delete a record in Ax and do an incremental push in BYOD, it doesn't push the delta change to BYOD. 

Any idea what am I missing here?