Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use snippets in automations, these work elsewhere in Budibase #13590

Open
1 task done
ConorWebb96 opened this issue May 2, 2024 · 3 comments
Open
1 task done
Labels
bb-automations Budibase Automations related work enhancement New feature or request javascript Relating to user JavaScript in the builder

Comments

@ConorWebb96
Copy link
Contributor

Checklist

  • I have searched budibase discussions and github issues to check if my issue already exists

Hosting
Self

  • Method: docker compose
  • Budibase Version: 2.24.0
  • App Version: 2.24.0

Describe the bug
Snippets don't seem to work in automations

To Reproduce
Steps to reproduce the behavior:

  1. Create a snippet in the design or data screen
  2. Use it in either of these screens, see that it works
  3. Go to the automation tab and use a snippet inside it
  4. See that this doesn't work here.

Expected behavior
Snippet functions should be able to be used within automations. (Anywhere that has a bindable field, should allow js snippets to be used.)

Additional Notes
It might be a good idea to allow snippets to be used within the JS scripting step within Automations as having these reusable functions may come in handy here.

@ConorWebb96 ConorWebb96 added bug Something isn't working enhancement New feature or request bb-automations Budibase Automations related work javascript Relating to user JavaScript in the builder labels May 2, 2024
Copy link

linear bot commented May 2, 2024

@aptkingston
Copy link
Member

aptkingston commented May 2, 2024

Just confirming that this issue is an enhancement to add snippets to automations, right? I deliberately didn't include snippets there since automations do so many unique things with bindings. If you were able to see snippets somewhere in automations and they just didn't work then that's definitely a bug, because you shouldn't be able to see them anywhere.

Otherwise I'm just gonna remove the bug label from this since this is as intended - automations should not have snippets right now.

Can't remember those details off the top of my head from our chat about this one.

@aptkingston aptkingston removed the bug Something isn't working label May 2, 2024
@ConorWebb96
Copy link
Contributor Author

Yes, Sorry selected the wrong template which auto adds the bug tag!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bb-automations Budibase Automations related work enhancement New feature or request javascript Relating to user JavaScript in the builder
Projects
None yet
Development

No branches or pull requests

2 participants