I have the below X++ code how can I apply the where clause using query build range.
select pionHCMVacationSettlement where pionHCMVacationSettlement.Worker==22565420970 && pionHCMVacationSettlement.posted==NoYes::No;
I try the following but it does not work
queryBuildRange = queryBuildDataSource.addRange(
FieldNum(PionHCMVacationSettlement,Worker));
queryBuildRange.value(strFmt('(%1 == %3) && (%4 == %5)',
fieldStr(PionHCMVacationSettlement, Worker),
queryvalue(22565420970),
fieldStr(PionHCMVacationSettlement, Posted),
queryvalue(NoYes::No)));