{"id":5595,"date":"2020-06-15T11:07:37","date_gmt":"2020-06-15T11:07:37","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/salesforce\/?p=5595"},"modified":"2020-11-18T15:14:27","modified_gmt":"2020-11-18T15:14:27","slug":"salesforce-tips-dynamically-pass-parameters-to-run-reports","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2020\/06\/15\/salesforce-tips-dynamically-pass-parameters-to-run-reports\/","title":{"rendered":"Salesforce Tips &#8211; Dynamically Pass Parameters to Run Reports"},"content":{"rendered":"\n<p>This blog will guide a user on how to pass parameters a run-time on Report and invoke the report through custom link or custom button.<\/p>\n\n\n\n<p>Dynamic reports let users analyse the data for particular records whose parameters have been passed through URL. <\/p>\n\n\n\n<p><strong><em>Read More:<\/em><\/strong> <a href=\"https:\/\/www.greytrix.com\/product\/gumu\/salesforce-sage-erp-integration\" target=\"_blank\" rel=\"noreferrer noopener\">Salesforce &#8211; Sage ERP Integration<\/a><\/p>\n\n\n\n<p>For e.g.: Let\u2019s consider a scenario where, user have a report that displays the summarized data for all the Accounts (Customers) and its respective Orders (Sales Orders). Now, when running the report user only wishes to see the report of a particular Account and associated Orders. To achieve this we have to pass the particular Id of the Account as parameter to the report.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Guidelines for adding parameter\/filter on the report: <\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li> Go to your report and edit it.<\/li><li> Select the desired &#8220;API name&#8221; of the field in which you want to pass the value of parameter. <\/li><li> Select the operator and keep the value box blank\/empty, For Ex: the filter of <strong>AccountID <\/strong>as shown in below image. <\/li><\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/06\/1_Report-Filter.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/06\/1_Report-Filter.jpg\" alt=\"Report Filter\"><\/a><\/center>\n<font size=\"2\"><center><i>Report Filter<\/i><\/center><\/font>\n\n\n\n<p>Now let&#8217;s go to the &#8220;Object Setting&#8221; of the respective object where you want to display the report (in our case i.e. Account). And let&#8217;s create a custom link button and add parameter to it with the help of below steps: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to the &#8220;Setup&#8221;, and Open the Object Manager tab.<\/li><li>In the Quick find box search for Account object. <\/li><li>Under the options, select the \u201c<strong>Buttons, Links and Actions<\/strong>\u201d module. <\/li><li>Create an Action or Custom button whichever is preferable according to you.<\/li><li>Type in your URL in the URL box as shown in the figure (Refer: Report URL), and copy the \u201c<strong>lightning\/r\/Report\/&lt;YourReportID&gt;\/view<\/strong>\u201d and paste the Report ID of your report instead of <strong>YourReportID<\/strong>.  <\/li><\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/06\/2_Report-URL.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/06\/2_Report-URL.jpg\" alt=\"Report URL\"><\/a><\/center>\n<font size=\"2\"><center><i>Report URL<\/i><\/center><\/font>\n\n\n\n<ul class=\"wp-block-list\"><li>To identify <em><strong>YourReportID<\/strong><\/em>, go to the reports tab and open your report, once you have opened it, copy the text as shown in the below image.<\/li><\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/06\/3_Report-ID.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2020\/06\/3_Report-ID.jpg\" alt=\"Report ID\"><\/a><\/center>\n<font size=\"2\"><center><i>Report ID<\/i><\/center><\/font>\n\n\n\n<ul class=\"wp-block-list\"><li> Append the parameter&nbsp;<em><strong>?fv0=&lt;Filter Value<\/strong><\/em>&gt;&nbsp;to the end of the report\u2019s URL (Refer: Report URL). <ul><li><strong><em>fv0<\/em><\/strong>&nbsp;\u2014<em>fv<\/em>&nbsp;stands for &#8220;filter value,&#8221; and is the name of the parameter. The&nbsp;0&nbsp;is the numerical order in which the filter appears in the report. (The first filter is 0, the second filter is 1, the third is 2, and so forth.) <\/li><li><strong><em>&amp;<\/em>&nbsp;\u2014<\/strong> denotes a new parameter in the URL. If no other parameters are present in the URL, then substitute \u201c<strong>?<\/strong>\u201d&nbsp;in place of&nbsp;\u201c<strong>&amp;<\/strong>\u201d. <\/li><\/ul><\/li><li> Save the button and add the button\/link on the Layout. <\/li><\/ul>\n\n\n\n<p>Now your report will dynamically run as per the parameter passed through the URL. We hope you may find this Blog resourceful and helpful. If you still have concerns and need more help, please contact us at <a href=\"mailto:salesforce@greytrix.com\">salesforce@greytrix.com<\/a><\/p>\n\n\n\n<p><strong>References:<\/strong><\/p>\n\n\n\n<p>For more information, you can refer the below link: <a href=\"https:\/\/help.salesforce.com\/articleView?id=reports_filter_url.htm&amp;type=5\" target=\"_blank\" rel=\"noopener\">Filter Reports via URL Parameters in Lightning Experience<\/a><\/p>\n\n\n\n<p style=\"text-align: justify\"><b>About Us<\/b><\/br>\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> \u2013 a globally recognized and one of the oldest Sage Development Partner and a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners and Sage PSG across the globe. We offer 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.<br><br> Greytrix has some unique solutions for Cloud CRM such as <a href=\"\">Salesforce Sage integration<\/a> for <a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/integration\/\">Sage X3<\/a>, <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-100-integration\/\">Sage 100<\/a> and <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-300-integration\/\">Sage 300 (Sage Accpac)<\/a>. We also offer best-in-class Cloud CRM <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/crm-development\/\">Salesforce customization and development services<\/a> along with services such as Salesforce <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/data-migration-support\/\">Data Migration<\/a>, <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/crm-development\/\">Integrated App development<\/a>, Custom App development and Technical Support business partners and end users. Salesforce Cloud CRM integration offered by Greytrix works with Lightning web components and supports standard opportunity workflow. Greytrix GUMU&#x2122; integration for Sage ERP \u2013 Salesforce is a 5-star rated app listed on <a href=\"https:\/\/appexchange.salesforce.com\/appxListingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>.<br> The GUMU&#x2122; Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.<br><br> For more information on our Salesforce products and services, 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>Related Posts<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2020\/02\/10\/gumu-salesforce-tricks-tips-change-the-icon-image-next-to-a-erp-sf-linked-record\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Change the icon image next to a ERP-SF linked record (opens in a new tab)\">Change the icon image next to a ERP-SF linked record<\/a><\/li><li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2019\/08\/21\/details-about-gumu-external-uid-field\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Details about GUMU&#x2122; External UID field (opens in a new tab)\">Details about GUMU&#x2122; External UID field<\/a><\/li><li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2017\/10\/06\/how-to-rename-the-field-label-in-salesforce-for-managed-package\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"How to rename the Field label in Salesforce for managed package (opens in a new tab)\">How to rename the Field label in Salesforce for managed package<\/a><\/li><li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2016\/12\/29\/using-roll-up-summary-field-formula\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Using Roll-Up Summary field formula (opens in a new tab)\">Using Roll-Up Summary field formula<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This blog will guide a user on how to pass parameters a run-time on Report and invoke the report through custom link or custom button. Dynamic reports let users analyse the data for particular records whose parameters have been passed through URL. Read More: Salesforce &#8211; Sage ERP Integration For e.g.: Let\u2019s consider a scenario\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2020\/06\/15\/salesforce-tips-dynamically-pass-parameters-to-run-reports\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[797,796,800,799,162,164,801,184,188,795,793,794,325,356,359,360,361,672,721,377,798,401,609,424,430],"class_list":["post-5595","post","type-post","status-publish","format-standard","hentry","category-salesforce-srv","tag-access-flow-through-link","tag-dynamic-run-a-report","tag-flow-runtime-setting-salesforce","tag-flow-setting-in-salesforce","tag-gumusfsage100","tag-gumusfsage300","tag-gumusfsagex3","tag-integrate-salesforce-with-sage-100","tag-integrate-sfdc-and-sage-100","tag-pass-report-parameter","tag-report","tag-report-url","tag-sage-300","tag-sage-x3","tag-sage100","tag-sage100-salesforce","tag-sage100-sf","tag-sage300-salesforce","tag-sagex3-salesforce","tag-salesforce-and-sage-100-integration","tag-salesforce-flow-setting","tag-salesforce-integration-with-sage-100","tag-salesforce-report","tag-salesforce-with-sage-100-integration","tag-salesforce-sage100"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/5595","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=5595"}],"version-history":[{"count":4,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/5595\/revisions"}],"predecessor-version":[{"id":5825,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/5595\/revisions\/5825"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=5595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=5595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=5595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}