Forum Discussion
If you want to set the Salesforce object dynamically:
1) Make sure the value of the field "salesforceObject"(that you are passing to the Salesforce Update Snap) from the upstream snap(perhaps is Mapper Snap) is not null.
2) Check if you are actually sending the field "salesforceObject" from the upstream snap to the Salesforce Update.
A screenshot from the upstream snap will help here debugging the issue.
BR,
Spiro Taleski
- terrible_towel2 years agoNew Contributor II
I do know the total count as it comes back from each request. I've tried setting the has next to 'true' and then the total pages to fetch = &entity.total_count, but it complains that 'entity' is undefined for some reason. What am I missing?
- ddellsperger2 years agoAdmin
your total pages to fetch will only be able to use input parameters, unfortunately not the data from the response. You won't be able to use the
$entity
within that, so you'll have to use the has next to determine if you've reached the end, you could do something like$entity.data.length >= 100 && (100 * (snap.out.totalCount + 1) <= $entity.total_count)
in order to check for both 1) you've got all of the data expected in this response and 2) you haven't reached the limit of data.- terrible_towel2 years agoNew Contributor II
It seems like this approach does allow me to reach next page, but instead of fetching the rest of the dataset, it just re-fetches the same data from the 1st fetch. So it looks like the Has next expression is working, meaning it evaluates to true, but isn't able to pull the rest of the data. It seems like I'm failing at notifying the API that I want the 2nd batch onwards. So if I start with offset=0, then I'm not able to increment that value.