ACS User Custom Objects

You must Login before you can answer or comment on any questions.

All,

I am working on a mobile application using ACS. I have my User logic fairly set up without issue, but I need a suggestion as to how to associate multiple custom objects to a user. For example, I want to create a record for each of my cars and have both associated to my user account record. Is this possible? I don't see a userID field in the custom object. I know I can create one as part of the object, but I don't want to recreate the wheel if I can avoid it.

Thanks, B

— asked 10 months ago by Bruce Parr
0 Comments

1 Answer

When you create custom objects, the id of the user is with the object automatically. What you need to do is fetch it:

Cloud.Objects.query({
        classname: ' ... ',
        page: 1,
        where: {
            user_id: .... 
        },
        per_page: 10
    },
    function (e) {
    }
);

Your Answer

Think you can help? Login to answer this question!