sorenkrabbe / Chrome-Salesforce-inspector

Chrome extension to add a metadata layout on top of the standard Salesforce UI to improve the productivity and joy of Salesforce configuration, development, and integration.
328 stars 124 forks source link

[Explorer API]: failing to show Events Logs Files #237

Open 0cv opened 1 year ago

0cv commented 1 year ago

1- Query some event logs running this query SELECT LogFile, EventType, CreatedDate FROM EventLogFile WHERE EventType IN ('API', 'RestApi', 'ApiTotalUsage') =>

image

2- Use the explorer API to retrieve the event logs display(sfConn.rest("/services/data/v55.0/sobjects/EventLogFile/0AT1K00000Ioqn4WAB/LogFile", {headers:{"Content-Type": "text/csv"}, bodyType: "raw"}));

I tried various combination without specifying headers and/or bodyType, this was the same: no result.

image

Yet the request looks correct as Salesforce sends back a CSV. This can be verified by looking at the network tab:

image

So could it be that the response is not correctly shown in the view?

dufoli commented 3 months ago

this feature is available on https://github.com/dufoli/Salesforce-Inspector-Advanced