You should design your application to use original IDs and tokens to rather than the local ID. For
example:
Use integration codes for picklist items and workflow statuses in formula fields, templates
and triggers; do not use IDs.
Use template tokens such as Link to View Page {!#LINK.order} or a reference to the id, such
as {!id}. Do not explicitly use IDs in Template Fields or Integration Link Fields (used to build
dynamic URLs).