How to retrieve single record in cloud functions in sap build apps

One of our requirements is to preload the page with whatever data is stored in the application backend upon opening of the app. The simplest way (I think) is to create a data variable that retrieves a single data record using current logged in user’s information (for this particular case, I am thinking of using the email). Returned data will then be saved as a variable to pre-populate fields. The problem is, retrieving a single record from the entity requires me to pass the id, which is, by default, an automatically generated uuid upon data creation. Is there a way to retrieve a single record without passing the uuid, instead pass a different input that can uniquely identify the entry (user’s email)? If not, how can I get the uuid that I need to retrieve the single entry?

Scroll to Top