How do I add a record and then edit in the same function stack?
Options
dmitriianikin
Member ✭
Hi all!
I'm trying to:
1. Add a new record (based on a user's input)
2. Send a request to the ChatGPT API
3. Save the return value to the record that was saved in step #1
Is this the right way to go about it? If so, how do I do it?
Answers
-
Hi @dmitriianikin looks like you're thinking about it the right way! You'd want to make sure you are editing the record that is created in step 1 Add Record.
However, in terms of potentially optimizing this flow. I'm wondering if you think about it by making your API call, and once you have all the information for the record, then doing an Add Record.
So it would potentially look like:
- API call
- Add Record
This way you are minimizing your requests to the database.
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