How to automate ACF & WP REST API: Google Sheet with Activepieces

  Рет қаралды 601

Brendan O'Connell

Brendan O'Connell

Ай бұрын

#automation #wordpress #restapi #wordpresstutorial #activepieces
Part 2: Auto import from Google Sheet using REST API and Activepieces
Automate creation and update Custom Posts and Custom Fields in your WordPress site using the built in REST API and Active pieces to bring in data via Google Sheets. In this video I create and start the automation flow to accomplish this.
This post is also listed on my website: brendan-oconnell.com/blog
Steps:
1. Create Custom Post types and any fields you want to map
2. Create new automation flow in Activepieces
3. Connect Google Sheets
4. Download & Install JSON Basic Auth plugin
5. Connect WordPress to Activepieces
6. Choose Custom API call and set your custom route
7. Add JSON body to map the ACF fields
Body Code I used (adjust this to your custom fields)
{
"title": "",
"content": "",
"acf": {
"street_address": "",
"city": "",
"state": "",
"website_url": "",
"phone": ""
}
}
-----------------------------------
🌟 Brendan O’Connell 🌟
🎨 WordPress | Design | Development | Automation | Tech 🖥️
Want to connect or work together?
🌐 Website: brendan-oconnell.com
🐦 Twitter: / brendanocwp
🔗 LinkedIn: / brendan-o-connell1
☕ Buy Me a Coffee (or Tacos): buymeacoffee.com/brendanoconnell
----------------
Aff Links:
Get Bricksforge: bricksforge.io?aff=d768d61b
Get ACSS: automaticcss.com/ref/138/
Get Frames: getframes.io/ref/11/

Пікірлер: 36
@AidanJoyce
@AidanJoyce Ай бұрын
Another great video Brendan. Loving this series - really useful and lots of potential for various applications. thank you.
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
Great to hear! Hope you found something useful. Thanks
@kevinrittershaus9380
@kevinrittershaus9380 Ай бұрын
Awesome! Thanks for walking us through the entire process.
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
Thanks, I hope it made sense!
@starmap
@starmap 5 күн бұрын
Thanks for the tutorial. Very helpful. Please do more like this :)
@BrendanOConnellWP
@BrendanOConnellWP 5 күн бұрын
Thanks for watching. What do you want to automate
@nostressirish2767
@nostressirish2767 26 күн бұрын
excellent Brendan
@BrendanOConnellWP
@BrendanOConnellWP 26 күн бұрын
Glad you enjoyed! You think of a good use case for your projects?
@stevebaker2896
@stevebaker2896 Ай бұрын
Wow Brendan - thank you so much for this! - in a few weeks I need to set up an import from Google Sheets to CPTs just like you show here. I was wondering how it was done - now I know!
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
happy to share! REST API is a fantastic tool. thanks for watching. Hope you are successful w/ your import... Let me know if you have any questions!😀
@paradis2
@paradis2 Ай бұрын
Great video Brendan!
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
thank you my friend!
@isaurasotoca
@isaurasotoca Ай бұрын
Great video, once again Brendan! 😊 Did you find what was causing the query loop to not work as expected? Maybe because you did not actually select "Post" as the query source? Anyway, that was not the point of the video and I have learned a lot about Activepieces and REST API, so thank you!!! 😊
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
Thank you, hope it helps some folks. I haven't gone back to check but I think it's just that I had a secondary page layout that was overriding the brand new custom post archive template. But yeah didn't want to get distracted yet again (I already do that freely every day 😊)
@kamelberlime3532
@kamelberlime3532 Ай бұрын
Coool! Is there a way to do a much longer content like a blogpost?
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
yes it will do all body content and images i believe. if you mean writing blog content, it can also do that with adding in gpt to the flow it can rewrite your blog posts and repost them on your other sites. lots of possibilities! thanks for watching!
@rubengarciajr
@rubengarciajr Ай бұрын
this is a really good video, the only question, can you import images this way???
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
yeah i believe you can, dang i should have added that. i did it from that same spreadsheet - it was importing the google business images, so the images i think need to be in a URL format. only problem is trying to bring in data directly from other sites API (like i did in the part 1) because I believe WP has to have the media in the folder already. i think there can be a step to the flow added right before to do a api request on posting to media folder, then mapping to the posts. maybe i'll do this in part 3, cuz there's some things left to test as you mentioned
@rubengarciajr
@rubengarciajr Ай бұрын
i need this for a client to update two websites at the same time but the images were the annoying part lol
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
@@rubengarciajr i have a client that needs this right now too so if i remember, i'll report back how i do it. where are the images currently? can they be fetched independent of WP and then added to the flow upload step?
@myboringdesktop
@myboringdesktop 12 күн бұрын
How do you delete or update custom post types this way? For example, if America's Advantage Remodeling also had a repeating field of sale items that changed weekly, how would you remove the old sale items and add the new sale items?
@BrendanOConnellWP
@BrendanOConnellWP 12 күн бұрын
I used GET to get the data, and POST to create new data. You can use the actions of PUT to edit/update data and DELETE to delete them. GET POST PUT DELETE are the common features of HTTP
@myboringdesktop
@myboringdesktop 12 күн бұрын
@@BrendanOConnellWP Thanks so very much. While there are about 3 quadrillion channels showing the basic and intermediate stuff about WordPress, I can find very few that explain the more in-depth stuff in a simple manner. Thanks for the videos!
@BrendanOConnellWP
@BrendanOConnellWP 12 күн бұрын
@@myboringdesktop Let me know if you find more, I am looking for those as well
@myboringdesktop
@myboringdesktop 12 күн бұрын
@@BrendanOConnellWP Will do. I may make a few if I can't find them.
@MohammedGrowth
@MohammedGrowth Ай бұрын
Are you using the cloud version of active pieces or self hosted
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
I am using the Cloud version here. You can do quite a lot with the free cloudplan (1000 tasks a month) and each 1000 are $1 more. I have installed it self hosted but didn't get it finished. might try again, but the cloud is maybe cheaper than self-hosting at least initially
@MohammedGrowth
@MohammedGrowth Ай бұрын
@@BrendanOConnellWP worth getting this vs make or zapier
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
@@MohammedGrowth havent used zapier in a long time. it looks like this is similarly priced to Make (around $1/1000 tasks). I think either can work for you. Take a look at the integrations - if make has 1 you definitely need check it out. You can usually custom call into anything though, so just pick the one that looks easiest to learn and maintain and sell to potential clients.
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
if you dont mind setting it up, you can host activepieces and have unlimited tasks yourself. there are several quick install options with docker i believe. otherwise the cloud and pay-as-you go pricing for tasks, seems pretty appealing vs committing to a monthly subscription and have tasks you arent using.
@kellog89
@kellog89 Ай бұрын
Thanks for the video. Is there a way to trigger a one shot import instead of a recurring one every n minutes?
@rubengarciajr
@rubengarciajr Ай бұрын
We need a WEB CAM!!!
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
🤨 do we?
@BGdev305
@BGdev305 Ай бұрын
WP headless? Or not, drop google sheets and use Supabase! WAYYYYY more functionality then using an insecure google sheet.
@BrendanOConnellWP
@BrendanOConnellWP Ай бұрын
Yes definitely better ways to do this type of thing. I've been trying to check out headless more, but it's a lot to undertake. i'd like to eventually get into it more
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 3,7 МЛН
DELETE TOXICITY = 5 LEGENDARY STARR DROPS!
02:20
Brawl Stars
Рет қаралды 21 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. ФИНАЛЬНАЯ ГОНКА! BMW M5 против CLS
47:36
1❤️#thankyou #shorts
00:21
あみか部
Рет қаралды 88 МЛН
Loopers: Getting Started with ACF Pro
19:32
Themeco
Рет қаралды 3,2 М.
ACF & Block Bindings API (WordPress 6.5 Beta Preview)
21:59
Brian Coords - WordPress Dev
Рет қаралды 2,7 М.
GutenBricks RC4.0 is here: Building blocks is now super fun!
10:40
ActivePieces Review - Workflow automation Zapier alternative with free and open source version
10:06
WordPress Tutorials - WPLearningLab
Рет қаралды 4,6 М.
Penpot 2.0: CSS Grid (Free Open Source Figma Alternative)
8:07
Brendan O'Connell
Рет қаралды 1,9 М.
Advanced Themer (v2.5+): Structure Panel Overview for Bricks Builder
13:51
Brendan O'Connell
Рет қаралды 1,1 М.
Low Code Custom Blocks in WordPress with Pinegrow and ACSS
19:01
Brendan O'Connell
Рет қаралды 428
Gutenbricks: Create reusable blocks for a solid Client Editing Experience
14:45
ChatGPT Make.com automation. Write hundreds of blogposts in an hour.
8:12
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 3,7 МЛН