I've seen that when a related list in a record's detail page surpasses 5 (or something) records, there is a link in the bottom that navigates to the full list of related records and nothing else.
In the instance I'm working on, I get this URL for such related list:
By dissecting that URL I've found that
a0F is the prefix of the related object (child of the relationship).
00N6100000HUcTH is the id of the field definition in that object that relates it to its parent. And
a0BQ000000AwSvF is the id of the parent itself: The record whose related list I wanna see.
How can I implement a link in a Visualforce page that gets me to this list in a way that works both in the sandbox and production? Do I have to build it manually or does Salesforce provide a shortcut? If I have to build it, does
Schema.DescribeFieldResult have an Id field? Can't find documentation for that class.