freshflame.
freshflame.4w ago

freshflame. - I am sending JSON to Buildship AP...

I am sending JSON to Buildship API. It gets the data but the boolean is empty. I found that Buildship converts everything to string that is why. I need the boolean data
6 Replies
freshflame.
freshflame.OP4w ago
I am sending "is_active" directly from Supabase
No description
Gaurav Chadha
Gaurav Chadha4w ago
Hi @freshflame. nope, if you check the logs of your workflow you'll see the boolean value and other types correctly. Attached a sample test screenshot.
No description
Gaurav Chadha
Gaurav Chadha4w ago
Also, we noticed the boolean value does not show up only when fetched by Get Data in Trigger (we'll check and update it) you'll be able to access those values in logs and use them in workflows with the correct type.
freshflame.
freshflame.OP4w ago
How can i get the values from the log?
Gaurav Chadha
Gaurav Chadha4w ago
You can use this remix for an overview https://app.buildship.com/remix/c4fdd687-da58-490b-bfa6-464bb795366b. If you run tests with a sample body, you can get the values.
BuildShip - Visual backend workflow builder
Visually build workflows and powerful backend logic for your apps. Powered by AI, connect to anything with or without code.
freshflame.
freshflame.OP4w ago
Looks good, the thing is that that are a lot of executions to get a boolean when should work normally This is the solution I found, if anybody is in the same situation. I made a new column in Supabase that is string and is a copy of the boolean. And updates automatic. ALTER TABLE public.profiles ADD COLUMN is_active_brevo text GENERATED ALWAYS AS (is_active::text) STORED; In my case I need for Brevo to know which email campaign to send to the user. True is paid user false is free user

Did you find this page helpful?