Data getting deleted when updating record despite using first_notempty
Hello guys,
I have a funnel divided into two parts:
- Get a quote
- Subscribe
When the user obtain the quote, I execute a POST request to my user table in order to create the record and put all the infos.
Then, if the user wants to go further and subscribe, he pursues in the funnel and add information (email, phone, name, etc.). At the end of the subscribtion, I do a POST/user/{user_id} in order to update the existing record and write the new data I had not written previously.
So, in this second call, I only send info from the subscription.
Nevertheless, it erases my data from my first call (the one that allows them to get a quote).
I'm using the first_notempty
in "Edit Record In", but somehow it doesn't work. (Using WeWeb as frontend).
Thank you guys
And the second call
Answers
-
Hi @QuentinH,
From what I see, you are using the
first_notempty
filter in the wrong way.The edit value should remain as it is, but the filter value should be changed to
user_1.column_name
.
For example, regarding theCompany_Name
column, it should be like thatbut the marked area needs to be
user_1.Company_Name
.Hope that helps!
-
Thanks for your help but I don't get you. The column is called "Company_Name"
EDIT: I got it with the helpf of this video:Thank you again @Lefteris - Buynocodeapps for setting me on track
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