Housekeeping - Managing Scripts

I have got myself into a mess with my scripts (see screenshot). Specifically when it comes to the Google Sheets Integration (marketplace template), its so great that I use it for a lot of integrations. What I typically do is go to the marketplace template I have downloaded and clone the import or export (depending on what part of the flow I need for the flow I'm creating), and therein lies the problem..... I get all of the scripts associated with that import or export also and it ends up looking like the screenshot.

So, my question is.... what is the best practice here. All of these scripts are in use across many flows, but its obviously the same script. Is this just a necessary evil of cloning and using these (again they work great so no complaints)? Just trying to do a little housekeeping to see if there is a way to consolidate these down?

Hi Dave,

Are you manually cloning the flow step every time? If you manually clone this way, it copies every aspect of the step. Like this:

Suggestions

  1. Have you tried using a step from the suggestion list? If you sort the source by My account, you’ll see all the flow steps you've created. I tested it out—when you use one from your account's suggestion list, it doesn’t make a separate copy of the script. Instead, it still uses the original script saved in your account.


  2. If the scripts are identical, you can delete every script except one and then manually add the remaining script to all your flow steps.

To avoid creating duplicates moving forward, you'll need to use option #1—this lets you clone and modify steps while still referencing the original script. But to clean up the duplicate scripts already in your account, you’ll also need to use option #2. So, a combination of both options is the way to go.

Hope this helps!

-Kat

2 Likes

Hello @daveguderian ,

I'm not sure if you've seen this, as it was announced recently, but @tylerlamparter created a new tool to remove duplicate scripts.

Hopefully, this will help. Let us know if you have any further questions.

Thanks,

Kathyana