Advanced Topics
Advanced Logging
10 min
enable advanced logging in breadwinner (platform event based) breadwinner’s advanced logging automatically captures detailed error information and stores it directly in salesforce, removing the need for manual log checks but it does require some custom configuration on your part this guide provides step by step instructions for enabling and configuring this feature this is an advanced feature you will need to know how to create custom objects and create a flow in salesforce breadwinner cannot configure this for you because every salesforce organization is different in how they will want to process this information prerequisites before starting, make sure breadwinner is already installed you have salesforce administrator access step 1 enable advanced logging in breadwinner open the breadwinner app go to the breadwinner tab navigate to configuration → general enable (check) advanced logging click save step 2 assign the “breadwinner advanced logging” permission set assign the breadwinner advanced logging permission set to every user you want to log errors for this must be assigned for advanced logging to function step 3 create a custom log object this object stores logs generated by breadwinner events open setup (⚙️ gear icon) search for object manager click create → custom object object details label operation log api name operation log check ‘enable reports’ create the following fields field name type event type text(255) action text(255) description long text area (32768) step 4 create a platform event–triggered flow this flow listens to breadwinner’s platform events and saves them as records open setup (⚙️ gear icon) search for flows click new flow select platform event–triggered flow click next configure the platform event platform event object event log e click done add create records element object operation log c map the fields as below operation log field (operation log c) platform event field (event log e) event type c event type c action c action c description c detail c save the flow click activate step 5 test the setup (intentional error test) to confirm that advanced logging works, we’ll intentionally trigger an error create an error scenario open setup (⚙️ gear icon) open object manager open quickbooks company create a new field field name test type text mark as required save the field trigger the error go to an account and click new invoice select 'create a new quickbooks customer', enter a display name, and click save to trigger the error step 6 validate advanced logging after saving the record ✔ a platform event should be published ✔ the flow should trigger automatically ✔ a new record should be created in operation log c object what the log record should contain type error (or similar event type) action operation that failed description detailed error message note after testing, be sure to delete the ‘test’ field
