Тёмный

Learn Airtable scripting #1: basics & removing duplicates with Giovanni Briggs 

Automate All the Things
Подписаться 13 тыс.
Просмотров 18 тыс.
50% 1

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@elikent78
@elikent78 Год назад
I'm joining you from Puerto Rico. I'm a pretty new developer. I've dabbled in python. I'm here because I need to automate something in AT and unable to figure out how to do it through automations so trying my hand at writing a script.
@luisvillar8320
@luisvillar8320 Год назад
Thank you guys, I had a different use case but your explanation and examples gave me enough information to successfully complete my task.
@rmadd3404
@rmadd3404 3 года назад
We love Gio! I'm so pumped to watch this series...thanks bunches! ~ The Adobe Learn team
@AutomateAlltheThings
@AutomateAlltheThings 3 года назад
Thanks for watching! I ❤️ Gio too :)
@barrybrewer5164
@barrybrewer5164 Год назад
Guys, this is wonderful. Thank you so much!!!
@mattmejia8191
@mattmejia8191 Год назад
IKEA canvas in the background 👍🏼
@DigitalMindQuest
@DigitalMindQuest 3 года назад
I am with you! I am starting and I am particularly writing a "program' that will be pulling data from external API and post them into airtable...
@AutomateAlltheThings
@AutomateAlltheThings 3 года назад
Awesome! Love it!
@anshulnishant791
@anshulnishant791 Год назад
Hey Aaron, loved the session and was great learning. I had tried the script ,had problem at the line :await table.updateRecordsAsync(updates). It throws error that field 'Duplicate?' does nor exist in my table. Would appreciate if you can come will resolution.
@bradlegassick9327
@bradlegassick9327 2 года назад
Thx Aron just what I needed! Cheers
@AutomateAlltheThings
@AutomateAlltheThings 2 года назад
Thanks Brad! Glad it could be useful!
@bradlegassick9327
@bradlegassick9327 2 года назад
@@AutomateAlltheThings I was wondering if you have a solution for deleting a duplicate rather than flagging all the duplicates? Cheers
@rafaelnegreiros_analyst
@rafaelnegreiros_analyst Год назад
I found fantastic this lesson. I tried to use this solution in a table with about 1k records, but using the script in automation, such as whenever a new record is created, check if it's duplicated. But as the script takes about 1min, it doesnt work in automation, once it's allowed script running during up 30sec. Do you have a way do make it faster?
@Palitzonsky
@Palitzonsky 3 года назад
thanks a lot mate!
@rafaelnegreiros_analyst
@rafaelnegreiros_analyst Год назад
Fantastic
@melrosedelwingett1358
@melrosedelwingett1358 2 года назад
Thanks guys! This was very helpful!
@AutomateAlltheThings
@AutomateAlltheThings 2 года назад
Glad it was useful Melrose!
@aaronholmes1491
@aaronholmes1491 2 года назад
I really like this method, thank you! Just to note though, that this method won't *clear* the duplicate flag once a record has been updated to have non-duplicated value.
@AutomateAlltheThings
@AutomateAlltheThings 2 года назад
That is true! You'd need an additional delete step which you can do via scripting as well!
@GuyohmB
@GuyohmB 2 года назад
Thanks for the nice video ! Is it possible to differentiate the old duplicate from the newest one ? In my case, I want to find duplicate - Keep the wen one and delete the old one. Thanks for your help !
@AutomateAlltheThings
@AutomateAlltheThings 2 года назад
Heyo! Yup, basically you can tag the one that just came in as new and then the one you find as old. You can use the delete method to delete whichever you prefer from the script! Hope that helps!
@anthonyfenton4043
@anthonyfenton4043 2 года назад
I was looking to do something similar and found that using this helped, though this is to keep the older date : record.getCellValue("Allocation Date") > potentialDup.getCellValue("Allocation Date")
@Snake_Therapy
@Snake_Therapy Год назад
I appreciate how you go through this slowly and clearly, HOWEVER... when I put this script into my base, I immediately received a bunch of error messages with "Methods" and Fix options that made me lose all understanding of what you explained in the video. also there was a depreciation of code you used... #clueless #reallybadatthis #sigh
@AutomateAlltheThings
@AutomateAlltheThings Год назад
HI Shrizz, I imagine this is because of "selectRecordsAsync" which now requires to specific which fields you want to select in the records. That said, the code should still run, if it doesn't could you shoot me an email at aron@aatt.io with the issue and I'll see if I need to add a disclaimer/update in the description. Thanks!
@vsakthivel85
@vsakthivel85 3 года назад
Hi Thanks for update its really very useful . my Question is if the table contain 100k Record , How is the speed & performance of the checking the duplicates .
@AutomateAlltheThings
@AutomateAlltheThings 3 года назад
Hi Sakthivel, Airtable shouldn't be used for such large DBs unfortunately so yes you'll probably hit performance issues looking for duplicates in that large of a dataset.
@emmanueleban1096
@emmanueleban1096 3 года назад
thanks guys appreciate this ..a bit stuck as i am using this method to avoid dateoverlapping for appointment and pushing a new date for the appointment if date already exist. will appreciate your help please
@AutomateAlltheThings
@AutomateAlltheThings 3 года назад
Hi Emmanuel, dates can be a little tricky in javascript! We don't cover this specifically but I'd recommend reaching out to the Airtable community for specific questions!
@emmanueleban1096
@emmanueleban1096 3 года назад
Sorry one question a scripting function can not manipulate the DOM correct ?
@geckosonic
@geckosonic 3 года назад
Your scripts use selectRecordsAsync , which are deprecated
@AutomateAlltheThings
@AutomateAlltheThings 3 года назад
Thanks for the note!
@my_marketingmatters
@my_marketingmatters 2 года назад
@@AutomateAlltheThings What should be used now since that is deprecated?
@matarloum2894
@matarloum2894 2 года назад
@@my_marketingmatters let table = base.getTable("Tasks"); let query = await table.selectRecordsAsync({fields: table.fields}); console.log(query.records);
@Shadowkorsow
@Shadowkorsow 3 года назад
How about filtering out cells that have blank values??? i have a column of values that contain values (that need to be checked for duplicates) or should be blank. been trying for a while but cant figure it out
@AutomateAlltheThings
@AutomateAlltheThings 3 года назад
Hi Daryl, you can adjust the condition to check for blank! Here are some pointers on how to do that depending on what your field type is (string, linked recrd) stackoverflow.com/questions/154059/how-can-i-check-for-an-empty-undefined-null-string-in-javascript
@gusev80
@gusev80 2 года назад
You should use filter as well.. But to check, you should at first extract from cell. It's like: let nonblanks=query.records.map(x=>x.getCellValue('some_field').filter(n=>n) but be careful with numbers, filter() expects boolean true/false result after "=> " , so '0' will be converted to 'false' same as nuil values.
@temmie676
@temmie676 2 года назад
How do i make the script run forever?
@AutomateAlltheThings
@AutomateAlltheThings 2 года назад
Hey Temmie, you can a script on a schedule (every minute/hour/day for instance) using airtable automations. Check out part 3 of this series where we do exactly that!
@frankdrolet9439
@frankdrolet9439 2 года назад
Great tutorial, very helpful! I think it would be worth it to edit o try to be more concise, the video could be lasting 20-30 minutes while having the same content.
@AutomateAlltheThings
@AutomateAlltheThings 2 года назад
Hey Frank! Appreciate that feedback, agreed that we could cut it down a little. I'll keep that in mind the next time we do these types of streams :)
@JoshuaVogel79
@JoshuaVogel79 2 года назад
They actually start getting into substance at 17+ minutes: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uuUojfQimzQ.html
@aaronchow0727
@aaronchow0727 3 года назад
The moderator is slowing down the presentation and keep talking over the presenter.
@AutomateAlltheThings
@AutomateAlltheThings 3 года назад
Thanks for your feedback Aaron
@izksr
@izksr 2 года назад
I actually found it useful for clarification.
Далее
Learn Airtable in 60 minutes
59:01
Просмотров 47 тыс.
skibidi toilet multiverse 042
20:57
Просмотров 4,7 млн
Exploring Airtable’s New API
59:23
Просмотров 2,9 тыс.
Lookup vs Rollup Fields
17:14
Просмотров 38 тыс.
FASTEST Way To Learn Coding and ACTUALLY Get A Job
10:44
Easily stay on top of your expenses with Airtable
14:08
Airtable or Notion?
8:48
Просмотров 17 тыс.
Understanding the Primary Field in Airtable
16:04
Просмотров 5 тыс.
DHH discusses SQLite (and Stoicism)
54:00
Просмотров 91 тыс.