Rename a Google Drive file

I’ve tried using a Run Code node and that didn’t work. Gummie suggested that to handle credentials properly I should use a custom node, so I have switched to that.

Unfortunately, the code is:
a) not renaming the file
b) returning the file ID despite the Output on the custom node being set to statusMessage (text).

This seems to be a bug…any ideas?

Cheers,
André

Flow:
https://www.gumloop.com/pipeline?workbook_id=fwf21frAK3kLBcDyzoAKvt&run_id=MaLHqrDwRpJhZ5gwnJeJhA

Custom node:
https://www.gumloop.com/custom-nodes/builder?node_id=b9aYD4g414oDZ9tC3iVRco

Hey @AangelHD! If you’re reporting an issue with a flow or an error in a run, please include the run link and make sure it’s shareable so we can take a look.

  1. Find your run link on the history page. Format: https://www.gumloop.com/pipeline?run_id={{your_run_id}}&workbook_id={{workbook_id}}

  2. Make it shareable by clicking “Share” → ‘Anyone with the link can view’ in the top-left corner of the flow screen.
    GIF guide

  3. Provide details about the issue—more context helps us troubleshoot faster.

You can find your run history here: https://www.gumloop.com/history

Now I’m getting the following error:

Error: Could not import gumloop module. Ensure Gumloop environment is correctly set up. Details: No module named ‘gumloop’

Yet the code Gummie made for me includes:

import gumloop

Hey Andre,

We’ve limited support at the moment for troubleshooting custom nodes since they’re fully personalized to each user—but I can definitely point you in the right direction.

Two key things to keep in mind:

  • I’d recommend using the AI built into the custom node builder or your preferred AI model to generate the code, instead of using Gummie. Gummie is specifically designed for workflow help (we’re expanding that soon), so you might run into odd cases like it trying to import gumloop—which isn’t a real module and isn’t needed here.

  • Custom nodes don’t have access to our OAuth credentials. You’ll need to include your API key directly in the code. Since custom nodes are private to the owner, your keys will remain secure.

That said, Google Drive’s API does require OAuth 2.0 for operations that:

  • Access user-specific data
  • Modify resources (like files or folders)
  • Create or delete resources

Because of that, this kind of integration may be out of scope for a custom node at the moment—you can’t establish an OAuth connection there just yet. But I can definitely add renaming of drive files to our roadmap.

Sorry, I’m calling the code generator Gummie here. It was the code generator in the custom node that gave me the code that is attempting to obtain credentials from the gumloop object.

The problem with the code generator is that it’s not iterative…it seems to start from scratch every time one types into the prompt box.

Regarding putting keys in the code, I’ll try that.

It might still make sense to add environment secrets that are referenced via {{ var }} to the system. That way all the keys are in the same place and are protected from view within the code.

Thanks for adding the rename node to the roadmap.

Definitely! We’re also generally improving the custom node experience along with the Gummie upgrades I talked about. Stay tuned!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.