Unable to create a line in table with action button widget

Hello,
I created an action button with the widget “Action button”, with a test action in a column $Bouton_Test of the table :

if not rec:return None
return {“button”: “TEST BRUT”,“description”: “Ajouter à Test”,“actions”: [[“ADDRECORD”, “Test”, {“A”: “Test”, “B”: 1, “C”: “Ok”}]]}

I had another action but I made this simple test to try to see where is the problem, and had the same error.

I always have this error in the browser console :

Comm response #6 applyUserActions ERROR: [ACL_DENY] Blocked by access rules: 'ADDRECORD' actions are not controlled Comm.ts:345:13Rpc for GristDocAPI.applyUserActions#6: RPC_ONCALL_ERROR Blocked by access rules: 'ADDRECORD' actions are not controlled

I have a grist-oss instance installed with Docker.

There is no specific Access rules on this table and the API works normally if I use it with a Python script (with an API key) : I can create lines with the script.

Do someone would have an idea of how to solve that ?

Thanks a lot,

Could you try replacing "ADDRECORD" with "AddRecord"? It’s sensitive to capitalization.

Hello,

Thank you very much for the answer.

Yes, it was that. It’s always something obvious that make you try things without success for hours… :sob:

So thank you !