-
Hi everyone! Is it possible to send SOAP requests?
I have to connect to my company services and all the Endpoints receive SOAP, I was wondering if it is possible to send SOAP requests and receive XML data. Cheers!
-
How to extract a certain number of objects from an array
Hi everyone, So I have an external API request which returns an array as the result/response. The array has no definite number of objects in it. However I want to create a variable (an array as well) which would extract the first 3 objects from the response of the API request. I'm using the for each loop function but it…
-
Multi-table authorization so only the allowed user is allowed to POST, GET.
Hi. I've created a giant app, and somewhere along the near-end I've realized that for authentication, I only authenticate the user. So if they have any of the id's, and any of the endpoints, bam - they can do anything. To make it so the logged in user can only query data related to them, do I need to authenticate all my…
-
HELP! filter arrays and select the latest /not empty option
Hello everyone; Im working with an external API where Im receiving an arrays of repeat information which I would like to safe in a variable. my problem: Im receiving data with several array of different dates, which each contains the latest information from that date. some of the date arrays are empty and other are not. Im…
-
Xano sending 1 to external API instead of true. Help?
Hello, I'm using stripe, and sending a boolean true to the external API. I've also used webhook.site to look at the raw request. I'm looking at "allow_promotion_codes" in particular here. Xano is sending a 1 instead of a true to the external api. It looks like this has been addressed here also…
-
API connection with Aircall
Hello, I would like to establish a connection between Xano and aircall but it does not work. I can get information but I can't send any. I always get the same error message. I think that the format is not adapted and I think that it is probably the phone number which must be in E.164 format. I used the sprinft command but…
-
ERROR on XANO's side when creating a Stripe Session: "Please use a numerically indexed array"
I'm building an ecommerce platform for a client using Xano (for the very first time) and Stripe. I'm using the Stripe's official plugin available in the Xano's marketplace. I'm setting up the checkout request at this moment and I'm so close to a working solution. But I'm running in a wall here: when running the create…
-
Geting X number of latest records from a table
As the title mention, how can I do it from an API?
-
Can I return a table reference and an add-on of the same table reference separately in the same api?
In my front end I want to filter a collection list, based off of a column that is a table reference list of integers. I also need the add-on extended data from that table reference. This causes the return to be an array of objects. The weweb front end currently can filter only based on the returned value. Since the…
-
Auth using Cookie with Xano
I'm trying to figure out how to store returned auth token in httpOnly cookie and use it for subsequent auth requests to Xano. Does Xano accept httpOnly cookie as auth or does this have to be specifically Bearer XXXX in Authorization header?
-
Run function after api endpoint is run
A user creates a new record through an api endpoint. Then, a lot of processing needs to take place. Right now, I have all of the processing in the endpoint so the user has to wait on the front end for the end point to complete. But, there is a lot of processing that is irrelevant to the front end user. Is there a way to…
-
Async execution: send endpoint reply immediately after receiving webhook and execute the rest in the
I want to send back the 200 status to the endpoint directly (in the current set up Xano would wait for each function called in the external API call to be executed. -Is there of sending success at the chosen moment? -Is there a way of simply telling Xano to execute as per order but do not wait for the external API…
-
Set Conditional on an Add/Edit Record function
Hello there, I've got a Set conditional function (as per below) that seems to work well when I'm doing an Add a Record in my Xano table. The GET (SentToContact) is from an API call response. Now there are actually three values that this field could be. They are Not Sent, Scheduled, and Sent. Now my question is around me…
-
many to many bi-direction table relationship
To the Wise Ones I’m looking for guidance on how best to handle relationships between two tables with the goal of the lowest read latencies possible. I have a rental tools table and the store locations table. Each of these tables contains the details specific to the store and the tool. I would like to have a relationship…
-
Optional Auth on API endpoint
What would be the best way to allow auth + non auth users access the same endpoint and adapt function stack accordingly? (e.g. conditional doing one thing for auth users, other thing for non auth requests to that endpoint)
-
JSON format for External Paging
I'm working on getting external paging working on my Xano API and am a bit confused as to the preferred format of the request. I read the help article and am happy to use JSON but I'd like to clarify what exactly Xano is expecting. If send my reqeust to: https://my.xano.api/endpoint?{"external":{"page":num}} xano will see…
-
Moved: Pagination with Bravo studio
This discussion has been moved.
-
Post object with sublist or child items (array)
Hi there, I was trying out a use case posting an invoice with invoice lines. I searched this community and based on the results I watched some tutorial videos which gave me new insights but also confused me about the best approach. So I hope someone can help. Current approach I have two tables Table: invoice Table:…
-
Auth0 JWT access token returning 401
Hey! I'm trying to authenticate a user using a JWT access token I get from Auth0. The token seems to be valid according to https://jwt.io/, but my XANO API endpoint keeps returning 401 and the following error message: {"code":"ERROR_CODE_UNAUTHORIZED","message":"Unsupported input"} Any ideas? Thanks in advance!
-
500 Error: Invalid Name: mvpw1:4
Getting a 500 error when calling a GET endpoint that should be returning a single record in a table called Courses. The endpoint ends in /course/{id}. The error message is: Invalid name: mvpw1:4
-
How should I combine array values?
I have the following: I want to replace userId:[3,14,2] with userIds: '3,14,2'. Essentially I want to do a JOIN on the array. I could have maybe 100 different JSON objects with arrays containing maybe 100 elements. I can loop through all of the JSON objects in the result and then loop through all userIds appending them to…
-
Array Diff Filter
Hi all, I have run into some trouble with the array diff filter. I am comparing results from two different tables and trying to use the array diff filter to remove the duplicated results. It removes the duplicated result but also removes keys & values from another. I'm wondering if this is a bug or am I not using this for…
-
S3 - Check if file exists without downloading it
Is there a way to check if particular file exists on external server (CF + S3 in this case) in Xano, without downloading the response? I'm assuming the easiest way would be to do HEAD instead of GET but I'm not sure if that's the right approach here.
-
How do I get back the users latest form submission?
So I have a submission form and I want what you type in to be displayed right under the form right after you submit. How do I get the user's latest submission to be displayed right under? Also, how do I make it so when you have submitted once on that one page, you can't submit again?
-
Bug or just the way it is?
Hey team, I have a an api request where I have an input and if I use that input as an input for a function, the function doesn't work. The workaround I'm using is to create a variable from the input, then using the variable as the input for the function. This works. So, is this way it is or a bug? Not being able to use an…
-
HUGE BUG with Bulk record JSON add.
Hi @Chris Coleman I followed the bulk record add tutorial and can confirm all is working however there seems to be a massive bug when doing it in a real scenario... Please see the following 30 second video. For context, the bulk json works in the API creation page debugger but fails to work in real situation and also the…
-
JSON External filtering
I am using external filtering to get data. I'd like more information on filtering methods and JSON operators. For example, I would like to filter by the “Contains” operator, and not just by “=”. The article from Xano help gives a general understanding, but I would like to go deeper. Google didn't help. Could you guys help…
-
Is there a way to not parse a path as dot notation?
Is there a way to not parse a path as dot notation? I have an API that needs a path to be "@microsoft.graph.conflictBehaviour". This is being sent from Xano as "@microsoft": {"graph": {"conflictBehaviour": }} and thus resulting in a bad request response from the external API
-
How can I do recursion?
I have the following table setup I want to be able to enter a value of 7 and I want to get an array like [7,5,3,2,1]. Or if I enter a value of 3 I want to get an array like [3,2,1]. Generally speaking, when you do recursion you pass the function as a parameter to itself e.g. int fib(int n) { if (n <= 1) { return n; }…
-
No Auth Login?
Hey all, My Authentication works great in Xano, but I'm wasting too much time trying to get it to work on my front end. I'm trying to create a Faux login (for the sake of an MVP) that will just query the database, and return the user ID information if it's there, or send back a pre-determined user object if it does not…