Validating object id is valid

Hi,

How can I validated that a user or an object_id that is being referred to in my API call exists in one of my app tables in my server side code?

I am creating a link between two tables and I will like to enforce referential integrity.

Thanks,

Hello,

You can use the findByID API:
https://backendless.com/docs/rest/data_basic_search.html

The API is available in all our SDKs. Here’s one for Android for example:
https://backendless.com/docs/android/data_basic_search.html

Regards,
Mark