Business Forms : Update Request Payload

Hello to the ones who will read this !

I’m facing an issue (again haha) with the business Forms plugin that might be because of Grafana or my error.

This is the “Update Request” :

And this is the “Update Request Payload” :

The goal is to combine both the insert statements to be able to add values to both the tables.

Each insert statement works well separately, the issue is when I use them both at once.

I could create another visualization for the second table, I’m still curious about why this first option doesn’t work.

Thanks in advance !

Leane

1 Like

@LeaneM I don’t believe that transactions or multiple statements are supported in the data source.

I would recommend to use function/procedures to implement multiple statements and transactions.

1 Like

@mikhailvolkov Got it thank you !

So where should I write this procedure/function exactly ? (in the Business Forms, as a query, …)

https://dev.mysql.com/doc/refman/8.4/en/create-procedure.html

1 Like

Thank you there, will read it.

Appreciating your help !

1 Like