Google Sheets export

Russell Garner · Friday Demos · April 4, 2025 · 3:26

We've heard lots of demand for data directly into Google Sheets without Zapier. Now using Google Cloud Run functions, we have secure data transfer into Sheets.

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. All right, I think I'm next. I'll be super quick, but um by demand had wanted to just show um something that I added to community recently. Uh so there's already a couple of recipes for connecting Omni to Google Sheets through Zapier. Um, sometimes that's not the most uh favorable economics uh because I think the uh the zaps are charged per run and some different things and I've gotten a couple of requests from customers to do this through cloud functions.

  2. Um, so I'll just show uh show that working, but we've got a community article. Uh, and then I'll extend this in the future to do AWS Lambda functions and also um the equivalent in Azure um and maybe Office 365 too. Um, but what you would do as a user is come into a sheet. You're just going to grab the ID up here and then share it with your service account.

  3. And then once you do that, um, the cloud function and the setup instructions are in the article. It's super easy. Um, but you could just, uh, send to the to the cloud function. It'll do the processing and then, um, just pop the data in here. So it might take a second. Um, but then it goes in there.

  4. So nicely, it'll include the header row only if it's the first. So, if I were to run this a second time, uh, we should see the same data appear, but then with no header row, because boy, that's annoying if I had my headers repeating every time. And, uh, we can also apply a couple of different get arguments.

  5. So, just like come over here. I got these on my clipboard. Um, and so this mode equals new would be, hey, rather than appending to the same sheet every day, I'd like to create a new sheet. Um, and then you could name that sheet as well. Um, so I'll just test this. And then now I have omni data um with an actual like date attached.

  6. So that would give you the ability to, you know, use different modes and um things like that. Um and then the very last thing I'll show on this um because I would want you know everybody in the field to be able to use um uh you know develop cloud functions and and lambda functions really easily. There's a very cool utility called enro that allows you to have a public URL endpoint and then forward that stuff to your local computer.

  7. Um, so I'm going to extend that uh recipe on the community article uh to also show how you can locally debug uh which is super helpful. Um, and so I should have just gotten um this function coming in and then it should hit my debug breakpoint. Um, but it looks like it's still going through the pipes of the internet.

  8. So um yeah, super cool stuff to come here. Sweet.