T
Twenty5mo ago
lh_magic

How to Fire an API call from Workflow?

Seeing Send Email, Code and Form options. Thank you.
No description
10 Replies
Prastoin
Prastoin5mo 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_magicOP5mo ago
A bit new to this. Is there an example anywhere in the docs? Thanks in advance.
Prastoin
Prastoin5mo 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_magicOP5mo ago
Thank you @prastoin I'll can probably hack something. Assuming this is similar to AWS lambdas?
Prastoin
Prastoin5mo ago
Yes exactly
lh_magic
lh_magicOP5mo ago
Thanks for confirming.
thomast
thomast5mo ago
Let me know if you need help troubleshooting the code @lh_magic!
lh_magic
lh_magicOP5mo ago
@thomast Thank you. Will reach out if I run into trouble but should be ok.
lh_magic
lh_magicOP5mo ago
@thomast I'm getting this error (Region is missing) when testing workflow. Setup looks ok. Any help is greatly appreciated.
No description
Prastoin
Prastoin5mo 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?