Difference between revisions of "Get a Record ID"
From AgileApps Support Wiki
imported>Aeric (Created page with "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…") |
imported>Aeric |
||
Line 3: | Line 3: | ||
To get a record ID: | To get a record ID: | ||
To get an [[Object]] ID: | To get an [[Object]] ID: | ||
# Visit https://{domain}/networking/rest/record/{objectName} | # Visit https://{domain}/networking/rest/record/{objectName}?fieldList=id<br>A list of records is returned. | ||
# Use the content of the first <tt><id></tt> tag | |||
# Use the content of the <tt><id></tt> tag | |||
::'''''-or-''''' | ::'''''-or-''''' | ||
# Visit '''Designer > Data > Objects > {Object}''' | # Visit '''Designer > Data > Objects > {Object}''' | ||
# | # Use your browser's page-inspection tools to retrieve the ID of a record by examining one of the folder icons in the list: | ||
#: | |||
#* In Chrome, as well as 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"). | |||
#: | |||
# You are now displaying a call that looks like this: | |||
#:<tt><nowiki><a href="javascript:lj_showDetailPane('...',</nowiki></tt> | |||
#:'''<tt>'Service?t=498&id={recordID}</tt>''' | |||
#:<tt>&object_id=...&a=view&policyaction=view');"></tt> | |||
#::<tt><nowiki><img border="0" title="Details " alt="Details" src="graphics/view.png"></nowiki></tt> | |||
#:<tt></a></tt> | |||
#: | |||
# Extract value of the record ID from the <tt>id=</tt> parameter. |
Revision as of 01:47, 29 December 2011
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: To get an Object ID:
- Visit https://{domain}/networking/rest/record/{objectName}?fieldList=id
A list of records is returned. - Use the content of the first <id> tag
- -or-
- Visit Designer > Data > Objects > {Object}
- Use your browser's page-inspection tools to retrieve the ID of a record by examining one of the folder icons in the list:
- In Chrome, as well as 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").
- In Chrome, as well as in Firefox with the FireBug plugin:
- 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>
- Extract value of the record ID from the id= parameter.