Hi, I’m trying to calculate an average rating for a User via a backend workflow, but running into issues and I’m not sure if its privacy related or workflow related.
Are you allowed to search for a list of all Users and pass that list to a Backend Workflow? In debug mode, I don’t see my parameter being passed, but in the Log view, I can see the param listed as user: [object Object] for the API call.
However, the action I’ve set up via the backend workflow isn’t working, leading me to believe there might be some Bubble restrictions at play that aren’t indicated in the UI.
Any advice on how to work with User objects and the backend workflows? Or on how to troubleshoot when a backend workflow is involved?
If the user is scheduling a backend workflow it will be using their privacy rules, so it might not be able to find other users/data in the Users’ fields if you have privacy rules preventing it.
You can check the box “Ignore privacy rules” if you need to get around this just be careful not to like, save some other user’s data to the current user
Thanks!
To test, I changed the value passed to the backend workflow to be a list of user emails and I am seeing those emails being passed now in the Log view, so don’t know if its a privacy thing.
To further test, in the backend workflow, I’m taking that email as a paramets and asking to Create a new thing with it (a test object that just has the user email). No luck though - either the API is super slow, or some error is happening in the backend workflow that I can’t see.
You can pass a list of users into a backend workflow yes. Depends how you’re setting it up, but I would imagine you would just need a total score number which you then divide by the qty of users who’ve given a score to this object?