{"id":211,"date":"2013-12-28T07:06:05","date_gmt":"2013-12-28T07:06:05","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/salesforce\/?p=211"},"modified":"2025-05-29T06:12:32","modified_gmt":"2025-05-29T06:12:32","slug":"number-of-records-to-show-in-related-list","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/12\/28\/number-of-records-to-show-in-related-list\/","title":{"rendered":"Number of records to show in Related List"},"content":{"rendered":"\n<p>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 recorded (ID) of the tuple.&nbsp; 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.<\/p>\n\n\n\n<p>If the user wanted to see some more related records, then he had to click on the \u2018See more\u2019 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.<\/p>\n\n\n\n<p>The query string which we appended to the URL is as follows &#8211;<\/p>\n\n\n\n<p>\u201c<b>?rowsperlist =no of records to show<\/b>\u201d.<\/p>\n\n\n\n<p>For Example: ?rowsperlist =10<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2013\/12\/related-list.jpg\"><img decoding=\"async\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2013\/12\/related-list.jpg\" alt=\"related list\" class=\"wp-image-215\"\/><\/a><\/figure><\/div>\n\n\n<p>This will show the standard page of the sales force with 10 related records for that particular record.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> 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 require apex code incorporation into the Salesforce platform.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> has some unique solutions for Cloud CRM such as Salesforce integration with <a href=\"https:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\">Sage Enterprise Management (Sage X3<\/a>), Sage Intacct, <a href=\"https:\/\/www.greytrix.com\/product\/sage-100-erp\/gumu-100-salesforce-integration\">Sage 100 <\/a>and <a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp\/gumu-300-salesforce-integration\">Sage 300 (Sage Accpac)<\/a>. We also offer best-in-class Cloud CRM <a href=\"https:\/\/www.greytrix.com\/product\/crm-development\/salesforce-com\">Salesforce customization and development services<\/a> along with services such as Salesforce <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/data-migration-services\">Data Migration<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/integrated-application-development\">Integrated App development<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/custom-development\">Custom App development<\/a> and <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/maintenance-support\">Technical Support<\/a> to business partners and end users.<\/p>\n\n\n\n<p>Greytrix GUMU&#x2122; integration for Sage ERP \u2013 Salesforce is a 5-star app listed on <a href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>.<\/p>\n\n\n\n<p>For more information, please contact us at <a href=\"mailto:salesforce@greytrix.com\">salesforce@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n\n\n\n<p><strong><span style=\"font-size: Medium;\">Related Posts<\/span><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a title=\"Set the click event of button on Enter in Visualforce page\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/12\/07\/set-the-click-event-on-enter-in-visualforce-page\/\" target=\"_blank\" rel=\"noopener noreferrer\">Set the click event of button on Enter in Visualforce page<\/a><\/li>\n\n\n\n<li><a title=\"SOQL Query on combination of two fields\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/11\/21\/soql-query-on-combination-of-two-fields\/\" target=\"_blank\" rel=\"noopener noreferrer\">SOQL Query on combination of two fields<\/a><\/li>\n\n\n\n<li><a title=\"Excel Export in Salesforce\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/11\/19\/excel-export-in-salesforce\/\" target=\"_blank\" rel=\"noopener noreferrer\">Excel Export&nbsp;in Salesforce<\/a><\/li>\n\n\n\n<li><a title=\"PDF Export in Salesforce\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/11\/08\/pdf-export-in-salesforce\/\" target=\"_blank\" rel=\"noopener noreferrer\">PDF Export in Salesforce&nbsp;<\/a><\/li>\n\n\n\n<li><a title=\"Get Key Prefix\/Object id of Object in JavaScript\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/11\/02\/get-key-prefixobject-id-of-object-in-javascript\/\" target=\"_blank\" rel=\"noopener noreferrer\">Get Key Prefix\/Object id of Object in JavaScript<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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 recorded (ID) of the tuple.&nbsp; We were able to successfully navigate to that page\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/12\/28\/number-of-records-to-show-in-related-list\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[305,564,522],"class_list":["post-211","post","type-post","status-publish","format-standard","hentry","category-salesforce-srv","tag-related-list","tag-related-list-records","tag-visualforce"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":7,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"predecessor-version":[{"id":10499,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/211\/revisions\/10499"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}