When we are trying to trigger the events end point using the existing sync, the response payloads contains only the DATA element. The new Sync generated is not getting returned to the calling program.
Below is the code snippet.
client = asana.Client.access_token(personal_access_token)
result = client.events.get_events(opt_fields=[“resource”,“sync”], resource=project_gid, sync=sync)
resource = next(result)
if resource[‘resource’][“resource_type”] == “task”:
except StopIteration as f:
Please advise how to get the Sync attribute to be included in the response. Thanks in advance!