Accessing Runtime Context

In this example, the function provides runtime context like user ID, user email, user name, etc.

Code: /lessons/Access_Runtime_Context/AccessRuntimeContext.java

Steps

  1. Create a new function called AccessRuntimeContext.java.

  2. Call getUserId(), getIdOfUser(), getEmail(), getFullName() function.

  3. Log the response using LogApi.info().

  4. Return successful response.

Last updated