Get multiple objects knowing the object Id

Hi,

I want to get multiple objects from a table, I know all object Id from each one, I tried to use findById but I only get one of them

Backendless.Data.of(“Users”).findById({objectId:[‘xxxxx’,‘yyyyyyy’]});

Thanks

1 Like

Hi Dario,

You’re correct, the findById will return only one object with the specified objectId value. To get multiple objects you need to use the find method with a query that may look like this:

objectId in ('objectIdValue', 'objectIdValue2', 'objectIdValue3')

Regards,
Mark

1 Like

Great,

Thanks a lot!