發表文章

目前顯示的是有「cURL」標籤的文章

如何下載Event Log File / How to Download EventLogFile

 這一篇會用三言兩語簡述一下Event Log File的概念,然後列一些 document 及resource 供參。 重點提要 Salesforce 有一個 object 叫做 EventLogFile。存放著 Event Log File 的 record SOQL sample:  SELECT EventType,Id,LogDate FROM EventLogFile 注意:這裡存的是 Log File 的 record,並不是 Log 本身。如果想要細看 Log ,需要把 Log File 下載下來。 依照你付給 Salesforce 的費用多寡,能查看的歷史 Log 範圍也有所不同。從一天到三十天不等。 The event types you can access and how long the files remain available depends on your Salesforce edition. - Developer Edition organizations have free access to all log types with 1-day data retention. - Enterprise, Unlimited, and Performance Edition organizations have free access to the insecure external assets, login, logout, and total API usage event log files with 1-day data retention. For an extra cost, you can access all log file types with 30-day data retention. 不同類型的 Log 會分門別類存放,可用 EventType 做篩選。有約50種 EventType。在此列出常用的幾種: ApexExecution ApexTrigger KnowledgeArticleView LightningPageView PackageInstall Report ReportExport Search VisualforceRequest Log File 下載方式...