Backend Workflow linked with frontend

How can i show that information on frontend?
Hey guys, I’m building an app which do a request for an external app (n8n), and I want to return to the user what error occurs in n8n if that’s the case, for exemple if the user didn’t pass the necessery auth token then n8n won’t be able to do his work.

I already built an backend API in bubble whose can receive the errorCode and the errorDescription. I can store that info in Airtable, but I can’t show that in frontend in case of error.

The general workflow looks like that:
Bubble -calls-> n8n -ifError-> Bubble receive message -show-> Frontend

First things first, you need a way to associate the error webhook with the request. How will you know which request the error webhook is for if you only include the error code or description?

Then, there’s a bunch of approaches you could take, I’d create a Request data type, create one when the request is made, watch the data for changes, and if there’s an error, modify the Request to set ‘Error (yes/no)’ to yes. This way, you can pass the Request unique ID to the n8n workflow so that the same request unique ID is returned in the webhook and can find the request in the Bubble DB.

What do you refer as request data type?

Create a data type called Request