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
1-
Query some event logs running this query SELECT LogFile, EventType, CreatedDate FROM EventLogFile WHERE EventType IN ('API', 'RestApi', 'ApiTotalUsage')
=>
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.
Yet the request looks correct as Salesforce sends back a CSV. This can be verified by looking at the network tab:
So could it be that the response is not correctly shown in the view?
1- Query some event logs running this query
SELECT LogFile, EventType, CreatedDate FROM EventLogFile WHERE EventType IN ('API', 'RestApi', 'ApiTotalUsage')
=>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/orbodyType
, this was the same: no result.Yet the request looks correct as Salesforce sends back a CSV. This can be verified by looking at the network tab:
So could it be that the response is not correctly shown in the view?