Can i pass a variable into salesforce report as filter

image

Go to your report and edit it. Select the desired “API name” of the field in which you want to pass the value of parameter. Select the operator and keep the value box blank/empty, For Ex: the filter of AccountID as shown in below image.

Full
Answer

How to add more filters to a Salesforce report?

These inputs are 0 based that means that you will access the first set of filter fields using 0 (e.g. pc0, pn0, pv0). As you add more filters, you just increase the number (pc0, pc1, pc2…). Now to the operators. Here are the values that Salesforce is expecting: Bringing it all together. Run the desired report and copy the report ID from the URL.

How to pass parameter in Salesforce API?

Select the desired “API name” of the field in which you want to pass the value of parameter. Select the operator and keep the value box blank/empty, For Ex: the filter of AccountID as shown in below image. Now let’s go to the “Object Setting” of the respective object where you want to display the report (in our case i.e. Account).

How to pass a parameter to an API in a report?

Go to your report and edit it. Select the desired “API name” of the field in which you want to pass the value of parameter. Select the operator and keep the value box blank/empty, For Ex: the filter of AccountID as shown in below image.

How to pass the Account ID as a parameter to report?

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. Go to your report and edit it. Select the desired “API name” of the field in which you want to pass the value of parameter.

image

Leave a Comment