You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How do you query LastUpdated as being greater than or equal to? #10
You would need to pull the results, and then parse them after you have them on your machine.
This is what I would use. You will notice that I remove the UTC offset part of your date, as it does not play well with sftrp.
I then convert it to a date time object, so that it can easily be used for evaluation. I then pull every contact record in the account, 1000 at a time. After I have all of the records, I use a list comprehension to find and return the records which match the criteria.
So if the purpose here is to sync the contacts for example and sync them every so often for changes I just end up syncing all contacts every time? These seems like a large limitation in the API, otherwise why have it as a query able field if you can't query it properly?
I an not saying that this is the only way, it is just the way that I would do it. I imagine that you could order by lastupdated, and then only pull the groups of records that meet your criteria. It would be more work, imo, but you could do it.
Activity
jeremiahmarks commentedon Jun 22, 2015
You would need to pull the results, and then parse them after you have them on your machine.
This is what I would use. You will notice that I remove the UTC offset part of your date, as it does not play well with sftrp.
I then convert it to a date time object, so that it can easily be used for evaluation. I then pull every contact record in the account, 1000 at a time. After I have all of the records, I use a list comprehension to find and return the records which match the criteria.
I hope that this helps!
shaunc869 commentedon Jun 22, 2015
So if the purpose here is to sync the contacts for example and sync them every so often for changes I just end up syncing all contacts every time? These seems like a large limitation in the API, otherwise why have it as a query able field if you can't query it properly?
jeremiahmarks commentedon Jun 22, 2015
I an not saying that this is the only way, it is just the way that I would do it. I imagine that you could order by lastupdated, and then only pull the groups of records that meet your criteria. It would be more work, imo, but you could do it.
abocado commentedon Dec 2, 2016
This should work.