Using Custom Functions in POST Endpoints
Options
Marianna Kerppola
Member ✭
Hello! I've reviewed your Custom Function tutorial, yet I'm running into errors when trying to add Custom Functions in a POST endpoint. The Custom Function runs successfully, and the POST endpoint without the Custom Function incorporated runs successfully. However when I add the Custom Function to the POST stack, it claims the result variable from the function is missing. Let me know if I can provide any additional info to troubleshoot. Thanks!
Comments
-
Yes, please provide more details so I can best help you troubleshoot. Make sure, if there are any inputs required they are mapped when you insert the custom function to your new stack. Also, make sure it's returning something both in the response and for the actual logic it's running with the inputs
-
I was able to fix this error. In the Edit Record section, the variable name was saved text, rather than the variable itself, which was an integer. 👌
-
Glad you figured it out!
-
Oddly, while I was able to figure it out for the POST endpoint, I am running into errors with essentially the same set up for the GET endpoint. Here's a video showing the function itself and the set up for the POST and GET endpoints: https://www.loom.com/share/08baa1187c914c8088ff2f417d9e10e8
Let me know if there's any additional info I can share. Thanks! -
Thanks for the loom - I sent you a DM because I'd like to take a closer look to investigate!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback