Forum Discussion
_anomDiebolt_
11 years agoQrew Elite
Most of Underscore's methods work on collections which is a term they coined to refer to either JavaScript arrays or objects. In my opinion the Underscore documentation does not call attention to this fact explicitly enough. Methods that only operate on arrays appear under the Array section of their documentations:
http://underscorejs.org/
Regarding which method to use to reject duplicates I would use _.reject() because you will be rejecting whole records not just an isolated field if it already exists in the table. See:
http://underscorejs.org/#reject
You will need to transform the output of API_DoQuery to an array of arrays or an array of objects as it returns an XML document. Also, once your data is filtered down to prevent duplicates you will need to reassemble the data into a CSV string as API_ImportFromCSV is the only method to import multiple records.
Feel free to contact me off-world if you need additional help.
Also regarding the first User Group Conference in Brazil I came up with a great name and theme song:
http://underscorejs.org/
Regarding which method to use to reject duplicates I would use _.reject() because you will be rejecting whole records not just an isolated field if it already exists in the table. See:
http://underscorejs.org/#reject
You will need to transform the output of API_DoQuery to an array of arrays or an array of objects as it returns an XML document. Also, once your data is filtered down to prevent duplicates you will need to reassemble the data into a CSV string as API_ImportFromCSV is the only method to import multiple records.
Feel free to contact me off-world if you need additional help.
Also regarding the first User Group Conference in Brazil I came up with a great name and theme song:
QuickBase Mas Que Nada (QuickBase No Way)We can theme the conference around all the great things you can do with QuickBase that are considered "impossible" with purely native features. I am working on my presentation of using Lua (created in Brazil!) with QuickBase: http://www.lua.org/
https://www.youtube.com/watch?v=zeBDoNBNMro
LeanneSnoeck3
6 years agoQrew Trainee
Quick question on this old topic, would you be able to run these multiple API calls by setting up the IOT and putting them on the module.js page? This is exactly what I need to do in order to create additional child records when multiple multi-select fields are updated (without duplicating ones already created) and currently using a single webhook for the API_ImportFromCSV. If I can do it using this type of code, I will learn how to create this type of code! Don't want to spend a million hours if this would not work in the end. Thanks for your feedback Dan!