New: Sync Functions

@Erin_Masatsugu

Hello.
Please add the function to - https://jober.retool.com
Thank you.

1 Like

Hi @Erin_Masatsugu,
Could you add it to isctemetadigital.retool.com, please?
Thanks!!

1 Like

@Erin_Masatsugu Can you enable the option on ZeroCodez?

1 Like

Hey @Erin_Masatsugu can you enable async functions for capitola.retool.com ?
Thank you!

1 Like

please enable for pardinuscapital.retool.com thanks

1 Like

Hey can you please enable alt.retool.com, thank you !

1 Like

Hey, I was also wondering if there were any plans to share those functions across apps. Thank you

Yep it's on the roadmap!

2 Likes

Hi,
In case you are not yet done brainstorming ideas for how to allow sharing js between apps and workflows, would like to make a suggestion.
To me the most natural place for this would be to allow defining a js query type in the query library. The query library is already accessible both from apps and workflows as well as being both private and shared. I found js queries to be super useful in apps for performing async calls to other resources so being able to share them between apps would be awesome.

3 Likes

Sometimes I want to use {{…}} inside a sync function. But it seems that only params are available and that you cannot reference other things unless it was passed to the sync function. Should you use transformers for that instead?

I like the overview/panel of sync functions and to be able to have dummy data to test the output.

1 Like

Hi @Erin_Masatsugu could we gain access to this feature as well? Is it available for self-hosted retool? Thank you!

Alex

1 Like

Hi Steven,

That's correct, functions only have access to parameters that have been passed to it. Here's a quick rule of thumb for when functions would be helpful vs transformers:

  • Use a Transformer to transform data in your app’s state and store the transformed result in app state so it can be referenced by other parts of your app. You can think of a transformer like a selector in React.
  • Use a Function if you want to reuse/parameterize simple JS code that has no side effects. You can think of a function as a parameterized, anonymous version of a transformer whose result is returned directly to the caller rather than being stored in app state. You can also think of a function as a “pure function” in JS.
2 Likes

Hi Alex,

This feature is available for self-hosted, versions 3.52+. Please DM me your org name and I can add it to your license key!

Best,
Erin

1 Like

Hey @Erin_Masatsugu can you enable sync functions for openseam.retool.com ?
Thank you!

2 Likes

Please add https://gesturevip.retool.com/ to sync functions!

3 Likes

+1 (this would be very useful for our use case). It would very useful to have a way to share these across apps

1 Like

timbereye.retool.com please

2 Likes

Hello can we have the access, https://makeit.retool.com/ :pray:

2 Likes

Hi @Thomas.point, welcome to the forum! We just enabled this feature for your org.

Happy building! :hammer_and_pick:

1 Like

Can yo provide access to https://aimeefairweatherco.retool.com

Thanks in advance!

2 Likes