HubSpot Ideas

MCruz69

Save and re-use custom coded actions

I am finding that lately, as I have been working in this portal for some time now, I have developed a substantial code-base that is relatively re-useable, at least for myself and other devs. Instead of dual-tabbing and copying and pasting my code and settings etc, it would be nice to see the ability to save custom coded actions, not so disimilar to how I can save custom coded modules in the CMS. 

This would save me time sigificantly as, let's say that I want to clone an action: 
I need to either check my existing repositories OR remember which workflow used a similar action.
I then need to copy and past out the values, add in any inputs etc all manually, and save it out. 
Conversely, if I were able to select something like "Saved Custom coded actions > Get Associated [3rd Party Name] Data"
Anytime I need to access a custom bit a code I already wrote, I can just add it in, and update the 'template' as needed.

Double points if we could lock these down to only Super Admins or some other permission set, so I can avoid user confusion. 


1 Reply
fiberpunk
Contributor

I would love this ... so perhaps a thinkable version of this could be a custom code step that looks mostly similar to what we have right now (in that you pass input data etc., and it passes back return data), but the code itself is not managed locally in the action, but you choose from a library of functions that you manage and maintain separately/centrally.

 

That way you could probably even easily swap it with a new/updated function without having to redo the whole input/output setup. And perhaps there is a "clone locally" button, so that you can copy & edit it in the classic way. Just spitballing.