Issue running Serverless Functions on self-hosted setup
I'm on v1.8.2, and when running my manually triggered Workflow my serverless function is not outputting as expected. It works fine when testing in the editor and outputs exactly as expected, but when running the workflow it only seems to output giftAmount and userFirstName, but not userEmail or key, which is a api key I've set in the .env file. Is this expected behavior? Am I doing something wrong? Any help would be much appreciated! Thanks in advance!


4 Replies
@Ryan Marble what's your goal?
Send an email using SendGrid's API via HTTP request (in the next workflow step), passing it data from the Workflow Trigger object to personalize the email. SendGrid requires the API key to be sent in the headers, which I do in the next step. I'm trying to avoid hardcoding the API key anywhere in the database or Workflow.
I think in your case it'd be better to just do an external app which will do it
Right now I'm not entirely sure about the state of extensibility as there was breaking change and I have yet to check if it's been fixed or not (probably tomorrow evening or Wednesday at earliest)
If you have any questions, please check this thread (https://discord.com/channels/1130383047699738754/1423290797079662602/1426078662473810021), there should be some answers to your questions, if not, feel free to ask them, documentation will be done once proper foundation is done
Ok! Thanks for the info!!