Get Object and Record ID from the Request Object

From AgileApps Support Wiki
Revision as of 01:52, 18 February 2012 by imported>Aeric

When a JSP Page is launched from a context that is associated with a particular object record, the request object available in the JSP page contains the identifiers needed to obtain additional information from the record, using either the REST record Resource or the Java record handling APIs.

Use this code to obtain the object and record identifiers for the active record from the request object:

<%
  String object_id = request.getParameter("object_id");
  String record_id = request.getParameter("record_id");
%>

Notepad.png

Note: Although the object_id is alphanumeric, it can be used in any API that requires an object name.

Learn more: request Object