Number of records to show in Related List

By | December 28, 2013

We had a visual force page containing a hyperlink to navigate to the standard page of the object in one of our projects. For navigating to the standard salesforce page, we created the URL of the standard page which included the recordid (ID) of the tuple.  We were able to successfully navigate to that page but the problem we had was that it was showing only limited related records i.e. it used to show only 5 records in the related list of the object.

If the user wanted to see some more related records, then he had to click on the ‘See more’ hyperlink. To avoid that, we made some changes to the URL. We added a query string to the URL stating the number of related records to show by default when the page is visited from the visual force page.

The query string which we appended to the URL is as follows –

?rowsperlist =no of records to show”.

For Example: ?rowsperlist =10

related list

This will show the standard page of the sales force with 10 related records for that particular record.

This query string can also be applied to any object to view more or less number of related records on the standard page of salesforce.

The advantage of using this trick is that it affects all the related lists on the record but only affects the record being viewed i.e. if the record is viewed from the standard list page, this setting will not affect this page and it will show the default page with default number of related records.

About Us
Greytrix as a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners across the globe. We offers Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that requires apex code incorporation into the Salesforce platform.

Greytrix has some unique solutions for Cloud CRM such as Salesforce integration with Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100 and Sage 300 (Sage Accpac). We also offer best-in-class Cloud CRM Salesforce customization and development services along with services such as Salesforce Data Migration, Integrated App development, Custom App development and Technical Support to business partners and end users.

Greytrix GUMU™ integration for Sage ERP – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information, please contact us at salesforce@greytrix.com. We will be glad to assist you.

Related Posts