Difference between revisions of "Record Id"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:recordID}} | {{DISPLAYTITLE:recordID}} | ||
A record ID is a unique value used to access and update data. Record IDs can appear as: <tt>id, record_id, or recordId</tt>, depending on the tool. The record ID is used in [[API]]s and some [[Expressions#Formula_Expressions|Formula Expressions]]. | |||
Typically, the record ID is stored in a record's <tt>id</tt> field. Those fields generally are not displayed in common [[Views]] or [[Reports]]. | |||
<noinclude> | |||
:''See also:'' | |||
::*[[Object Type Identifier]] | |||
::*[[Session Identifier]] | |||
</noinclude> | |||
==Get a Record | ==Get a Record ID Programmatically== | ||
Record IDs can be obtained using: | |||
:*[[Record_Handling#Identifying_Objects_and_Records|Java API]] | |||
# | :*[[REST_API#Identifying_Objects_and_Records|REST API]] | ||
In the REST APIs, the record ID is stored in the <tt>id</tt> field. | |||
'''To get a record ID using the Java APIs:''' | |||
Field values are stored in the <tt>Parameters</tt> object that is delivered to code that is running in the platform. | Field values are stored in the <tt>Parameters</tt> object that is delivered to code that is running in the platform. | ||
Line 35: | Line 37: | ||
'' is two single quote (') characters</nowiki></pre> | '' is two single quote (') characters</nowiki></pre> | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
[[Category:Glossary]] | [[Category:Glossary]] | ||
</noinclude> | </noinclude> |
Latest revision as of 09:01, 4 April 2017
A record ID is a unique value used to access and update data. Record IDs can appear as: id, record_id, or recordId, depending on the tool. The record ID is used in APIs and some Formula Expressions.
Typically, the record ID is stored in a record's id field. Those fields generally are not displayed in common Views or Reports.
- See also:
Get a Record ID Programmatically
Record IDs can be obtained using:
In the REST APIs, the record ID is stored in the id field.
To get a record ID using the Java APIs: Field values are stored in the Parameters object that is delivered to code that is running in the platform.
- To get the ID of the record in that object, use the get method on that object, specifying 'id' as the name field to get.
- Considerations
-
- Record Identifier has a Range of: 1 - 2,147,483,647
- In most Objects, the record id is an integer
- Exception:In these objects, the record ID is a text string:
- Lookup fields require a string value.
- To convert a numeric Record ID to a string, use the CONCAT Formula Function:
CONCAT (id, '') where: id is a Record Identifier '' is two single quote (') characters