1

Im following this documentation about report filters via URL: https://help.salesforce.com/articleView?id=reports_filter_url.htm&type=5

But treat this only as use case example. I want to clarify this in general terms.

In the link above, it says:

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//describe and note their order in the JSON response.

Now I have tried to make the GET request directly via browser by pasting the given URL above and replacing the id placeholder with a valid report Id.

https://MYDOMAIN.my.salesforce.com/services/data/v39.0/analytics/reports/MY-VALID-ID/describe/

I only get

<Errors>
    <Error>
        <errorCode>INVALID_SESSION_ID</errorCode>
        <message>Session expired or invalid</message>
    </Error>
</Errors>

I have a good idea on how to make a "real" REST-call, but I would be interested if there might be some quick&dirty approach to get it via the browser?

  • I don't think it is possible directly from the browser without authentication. But, you can try workbench REST Explorer. It will give you the response. – Saroj Bera May 7 '18 at 10:51
  • You can also use Postaman within Google. – Mike May 7 '18 at 13:27
2

The endpoint you are referencing is part of the Reports and Dashboards REST API. You need to include an authentication token as a Header in your GET request. Details on how to authenticate via OAuth 2.0 here: User Agent OAuth flow.

As the commenters mentioned, the two most user friendly ways to access this endpoint is via:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.