Difference between revisions of "Get a Record ID"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
Line 9: Line 9:
:1. Visit '''Designer > Data > Objects > {Object}'''
:1. Visit '''Designer > Data > Objects > {Object}'''


:2. Use your browser's page-inspection tools to retrieve the ID of a record by examining one of the folder icons in the list:
:2. Use your browser's page-inspection tools to retrieve the ID of a record by examining one of the folder icons [[File:FolderIcon.png]]:


::* In Chrome, or in Firefox with the FireBug plugin:
::* In Chrome, or in Firefox with the FireBug plugin:
::** Right click the folder icon and choose ''Inspect Element''.  
::** Right click the folder icon and choose ''Inspect Element''.  
::* In all browsers:
::* In all browsers:
::** Display the page source and search for the folder image: graphics/view.png
::** Display the page source and search for the folder image: <tt>graphics/view.png</tt>


:3. You are now displaying a call that looks like this:
:3. You are now displaying a call that looks like this:

Revision as of 22:35, 9 January 2012

Typically, record IDs are of interest to programmers, who get them in the return values of API calls. But it can also be desirable to get a known value for testing.

To get a record ID:

  1. Visit https://{domain}/networking/rest/record/{objectName}?fieldList=id&pageSize=1
    A list of records is returned.
  2. Use the content of the <id> tag
-or-
1. Visit Designer > Data > Objects > {Object}
2. Use your browser's page-inspection tools to retrieve the ID of a record by examining one of the folder icons FolderIcon.png:
  • In Chrome, or in Firefox with the FireBug plugin:
    • Right click the folder icon and choose Inspect Element.
  • In all browsers:
    • Display the page source and search for the folder image: graphics/view.png
3. You are now displaying a call that looks like this:

<a href="javascript:lj_showDetailPane('...',​
'Service?t=498&id={recordID}&object_id=...&a=view&policyaction=view');">
      <img border="0" title="Details " alt="Details" src="graphics/view.png">​
</a>​

4. Extract value of the record ID from the id= parameter.