When i’m creating an object using service (create object in runtime only datasource with cardinality one and persist it in database), i can see in the development tools that the object was saved correctly in the database connected datasource (also in the App UI).
But when i refresh the solution (no other operations, just refresh) - that object is gone from the database connected datasource.
If i am doing the same operation (create object in runtime only datasource with cardinality one and persist it in database) in the app action instead, then the object is still there on the app refresh.
How is that Service triggered? By a Schedule? If that’s the case, have you checked that the Service Account us member if a Role with Create-permissions to that object class?
You may also use GraphQL query to check if that object is actually saved to the database by the service.
I have tried multiple variants (using ‘call service’ action node, and also by triggering service manually through API explorer) and the result is always the same. I have checked that permissions are correct.
If you change the filter of that database connected datasource in the App to “Read all” (or another “wider”) filter, can you then see it? And have your verified the existence of it in the database (graphql)?
Hi @kristian
I have enabled GraphQL, and the result is that count number for objects is increasing, but the query with same filter doesn’t return newly created objects: