Javascript code permissions

Hello everyone,  I am trying to simply create a object in a javascript code from a nanoflow. While I can create the object from the nanoflow, I cannot do the same from the code. I get the error “No permission to read or write entity Alert, check security!” I have set the permissions to the user role to read and write any object of the entity (“Alert” in this case), and it does work because it lets me create the object directly in the nanoflow. The problem is when I try to create the object from the javascript code. Any clues to solve this problem?  Thanks in advance :)
1 answers

I believe the entity name should include the module name as well.

Something like MyFirstModule.Alert