+ Start a Discussion
Devendra KeshariDevendra Keshari 

create a action button in lightning to redirect a report object using merge fields of account objects

Hello all,
I am facing an issue with lightning action button on account object on pressing the button it should be redirect to report object with merge field value of account object.

Please let me know how to implements in lightning.As i am new in lightning.
Thanks in advance!!!!
Alain CabonAlain Cabon
Filter Reports via URL Parameters in Lightning Experience​

https://releasenotes.docs.salesforce.com/en-us/spring17/release-notes/rn_rd_reports_filter_url.htm

https://na1.salesforce.com/one/one.app#/sObject/00OR0000000PCHYMA4/view?t=1479844235107&fv0=New%20Business

Let's take a closer look at what the parameter means.
& — Denotes a new parameter in the URL. If no other parameters are present in the URL, then substitute ? in place of &.
fv0 — The fv stands for "filter value," and is the name of the parameter. The 0 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.) Standard filters don’t count in this order, and can’t be filtered using URL parameters, although they appear as the first three filters on any report. To set the value of the fifth filter in the report, specify fv4. In our example, we're filtering the first field filter in the report, the Type filter.
The order in which filters appear in Lightning Experience on the report run page isn't necessarily the order that filters appear in the report. Locked filters are listed beneath unlocked filters on the run page, but aren't necessarily ordered after all the unlocked filters.

To see the order of filters in your report, refer to their order in the Report Builder.

Alternatively, make a GET call to /services/data/v39.0/analytics/reports/<report ID>/describe and note their order in the JSON response.


=New%20Business — Specifies that the Type filter value is New Business.
The parameter value must be URI encoded, which means certain characters (such as spaces) must be written in a format that URLs can understand. In our example, the space (' ') between "New" and "Business" becomes %20 when URI encoded.
  • Only field filters support edits from URL parameters. Standard filters (role hierarchy filters, scope filters, date filters), cross filters, and row limit filters aren't supported. Standard, cross, and row limit filters don't count when listing filters — fv0 is the first field filter.
  • Chart filters aren't supported.
  • Filter operators (like equals and greater than) can't be modified via URL parameters.
  • You can’t change the field being filtered via URL parameters.
  • You can't add new filters to reports using filter value URL parameters. You can only modify existing filters.