Result: this returns 2 operations but an empty value, if I dont put the 0 I get two operations, one with the value im after and another one
{{map(3.data.children; "data.ups")}}
Result: This gives me a result but I get 2 results again, 2 operations with 1 containing the 325 value that I want and another array with multiple values.
{{first(map(3.data.children; "data.ups"))}}
Result: This results in 2 operations, one with the value im expecting and another one.
This is likely from a module before the Reddit module.
If you need further assistance, please provide the following:
1. Scenario blueprint
Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.
(Note: Exporting your scenario will not include private information or keys to your connections)
Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
A.
Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Thank you! This is the first time the use of the aggregator actually completely clicked for me as to where and why I should use it so thanks for that.
EDIT:
No haha sorry I have one additional question since it is directly related to testing and putting it into practice, once I have tested this successfully and I move the “parse JSON” module to the “Make An Oauth 2.0 request” to pull the JSON through reddit’s API, the structure is slightly different:
While I still think it can be a bit more efficient my scenario, I think its fine like this:
HTTP
Parse JSON
Aggregate
Set variable
Latter 3 modules have the exact same setup.
Since the HTTP modules has an option to parse json I thought I could remove the 2nd module, but it messes it up. I am able to retrieve my data regardless so should you find joy in helping out to make it more efficient than that be awesome but not strictly necessary