Post values to API via ServerActions

Hi everyone,
This is my first post since I managed to solve all issues before by reading in this forum and a lot
of trail and error. But now I’m stuck.

I have a server action that is supposed to send values to an API to create an invoice.

I managed to get it working and it creates the invoice and put one invoice row on the invoice.

Now to the issue I have. I am not able to get multiple invoice rows on the invoice.
I think my problem is that I set values, and then on the next loop the values gets overwritten so
i only get the last row from DB.

I hope my question makes sense??

Not entirely sure, but I think the api call should be within the repeater. Not after it.

Hi Nevil,
No, I only want to repeat the invoice rows not the complete API call. I solved it, will publish solution in a couple of minutes.

Solved it,

I needed to edit the “dmxConnect/api/xxx.php” file manually.

4 Likes