How to trigger an event from backed to frontend when data changes. I need to solve the issue that I am having ; I need to know how once we change data in backend it should automatically be reflected/recognized in frontend . I would really appreciate any feedback that you might all have.
I don’t really understand the use case here (or why you need to use a backend workflow for this?)…
But, if you want the box to change colour when some specific data has changed, then you’ll need to add a field (or a datatype) to the database to mark that has happened, then use that data as the basis for your conditions…
The simplest way is to set the condition of this element that should be set to green. You can consider created date for example or add another status / state to the database table for that particular thing. Ofc assuming that making that object green is really important for your application UX.
If all what you want to do is just mark a thing that is newly added - then I would just define what it means that object is new, for example:
Object has been created at least 3 days ago etc. (then you use created date field)
Object has been opened by user (then you need to add additional field that will mark object opened)
Depending on your case you might consider those two.
The way you can transfer data between backend and frontend is via API calls. (API Connector)
You can’t currently return data directly inside the editor inside workflows.