Hi @ZRZJOLIVEIRA
Looking at our queries the Initial Query and Related Query are subtly different.
The main one being the ‘Related Query’ is using the Task ID as the the main constraint.
<constraint>
<left_operand>TASK.TASK_ID</left_operand>
<operator>eq</operator>
<right_operand>{TASK_ID}</right_operand>
</constraint>
The Initial Query is using the {PERSON_ID} constraint as we want all tasks for that record. But for a real-time related query, we’re just sending that one task.
It’s also worth noting the importance of the Extract Rules (Admin » System » Extract) in this process too, and using these alongside the Mobile Sync Rules.
The Extract rules are there to basically ask should the data be picked up. So it maybe worth looking to see if for the Task table is ‘Open’ status in the rule. If it is, then the related query will be triggered on the Sync Rule.
Helps this helps.
Regards Ady