We are developing an app with Appgyver and Backendless. An important feature we have to implement is that a logged-in user should be able to create multiple profiles.
We created a table in Backendless which would store all the form submissions from Appgyver. We would then like to retrieve the profiles created by each logged user on a separate page in Appgyver. Since each profile created in the table is associated with a user via the ownerid, we are trying to retrieve all the users (via the Get Record Collection in Appgyver) with the same ownerid. However, we can only do that via the where parameter. That is not something we can implement since the ownerid isn’t a static value that we can add to the options in the REST Console. Is there any other way we can implement this?
Thank you for your response. I set up the Owner Policy for the data table. However, I am unable to retrieve the profiles created by a logged-in user. I’m not sure what to plug in the where clause area in the REST API to return the required data.
Thanks so much for sharing the cookbook recipe on how to configure the owner policy. I was able to retrieve the records created by the logged-in user on Backendless.
To display the required data from the API when the user is logged in, I created a data variable that gets a record collection and stores it within that variable. However, that seems to be unsuccessful because it does not return any records that can be displayed on my page.
I am not familiar with AppGyver and cannot tell you what needs to happen there. If you’re getting an empty collection, I assume it means there is no logged-in user.
Thank you so much for your assistance. I was able to retrieve the records for the logged-in user on Appgyver. I was getting an empty collection because I didn’t attach the user token to it.