How to Fire an API call from Workflow?

Seeing Send Email, Code and Form options. Thank you.
No description
10 Replies
Prastoin
Prastoin4d ago
Hello @lh_magic you can use the code workflow to run custom code within a workflow, where you can perform any fetch or request you want
lh_magic
lh_magicOP4d ago
A bit new to this. Is there an example anywhere in the docs? Thanks in advance.
Prastoin
Prastoin4d ago
Unfortunately workflow are still in alpha and moving fast so we haven't produced a stable documentation yet Hey @thomast, could you please share some of code workflow examples ?
lh_magic
lh_magicOP4d ago
Thank you @prastoin I'll can probably hack something. Assuming this is similar to AWS lambdas?
Prastoin
Prastoin4d ago
Yes exactly
lh_magic
lh_magicOP4d ago
Thanks for confirming.
thomast
thomast4d ago
Let me know if you need help troubleshooting the code @lh_magic!
lh_magic
lh_magicOP4d ago
@thomast Thank you. Will reach out if I run into trouble but should be ok.
lh_magic
lh_magicOP3d ago
@thomast I'm getting this error (Region is missing) when testing workflow. Setup looks ok. Any help is greatly appreciated.
No description
Prastoin
Prastoin11h ago
Hey @lh_magic looks like you have an issue with your configuration, please review and setup the serverless sections env variables from https://twenty.com/developers/section/self-hosting/setup#serverless-functions

Did you find this page helpful?