-
Notifications
You must be signed in to change notification settings - Fork 28
Global Config Settings
Johannes Fischer edited this page May 10, 2025
·
11 revisions
rflib_Global_Settings
is a Custom Metadata object with configuration settings that are not allowed to be overwritten by Profile or Users. These settings are Global to the org.
Please note that if you are overwriting those settings, those values may be reset when installing a new version of RFLIB. Hence, it is recommended to make it a manual task to validate the Custom Metadata records upon package installations.
Setting | API Name | What is it for? | Default Value | Valid Values | Since Version |
---|---|---|---|---|---|
Allow HTTP Mocking in Production | Http_Mocking_Allow_In_Production | Allows HTTP request mocking within production environments (only applies if HTTP mocking is enabled). | FALSE | TRUE, FALSE | 6.6 |
Application Event Archive Cleanup Batch Size | Application_Event_Archive_Cleanup_Batch_Size | Batch size used by the rflib_ApplicationEventArchiveCleanup class for removing old big-object event records. |
2000 | 1 - 2,000 (typical range) | 9.2 |
Application Event Archive Cleanup Query Limit | Application_Event_Archive_Cleanup_Query_Limit | Maximum records per batch query in rflib_ApplicationEventArchiveCleanup . Helps avoid large query or heap limit issues. |
50000 | 1 - 50,000 (typical range) | 9.2 |
Application Event Archive Retain X Days | Application_Event_Archive_Retain_X_Days | Number of days to keep archived application event records (rflib_Application_Event_Archive__b ) before they are eligible for cleanup. |
180 | Any number larger than 1 | 9.2 |
Application Event Masking Enabled | App_Event_Masking_Enabled | Enables masking and safe truncation of the Additional_Details__c field on application events to prevent sensitive data exposure and ensure payloads stay within field size limits. limits. |
FALSE | TRUE, FALSE | 9.4 |
Application Event Query Limit | Archive_App_Event_Query_Limit | Maximum number of Application Event records retrieved in a single query for archiving. Ensures queries stay within governor limits (e.g. heap). | 10000 | 1 - 10000 | 9.0 |
Application Event Retain X Days | Application_Event_Retain_X_Days | Used by the Application Event Log Archiver to decide which Events to move to the Big Object archive. Events older than this value are archived and removed. | 45 | Any number larger than 1 | 5.0 |
Archive Log Query Limit | Archive_Log_Query_Limit | Defines how many Log records should be retrieved per query when archiving. Helps avoid large query or heap limit issues. | 50000 | 1 - 50000 | 6.1 |
Development Mode Enabled | RFLIB_Development_Mode_Enabled | When TRUE , calls to rflib_LoggerUtil.logInternal() are written at INFO level; otherwise, they are written at DEBUG. Only enable for building or debugging RFLIB UI. |
FALSE | TRUE, FALSE | 8.0 |
HTTP Request Mocking Enabled | Http_Mocking_Enabled | Enables or disables HTTP request mocking globally. When enabled, outgoing requests can be intercepted and matched against configured mock endpoints. | FALSE | TRUE, FALSE | 6.6 |
Log Archive Cleanup Batch Size | Log_Archive_Cleanup_Batch_Size | Batch size used by the rflib_LogArchiveCleanup class when cleaning old log-archive Big Object records (rflib_Logs_Archive__b ). |
2000 | 1 - 2,000 (typical range) | 9.2 |
Log Archive Cleanup Query Limit | Log_Archive_Cleanup_Query_Limit | Maximum records to fetch per batch in rflib_LogArchiveCleanup . Helps avoid large query or heap limit issues. |
50000 | 1 - 50,000 (typical range) | 9.2 |
Log Archive Retain X Days | Log_Archive_Retain_X_Days | The number of days to retain log archive records before they’re eligible for deletion. | 180 | Any number larger than 1 | 9.1 |
Permissions Explorer REST API Enabled | Permissions_Explorer_REST_API_Enabled | If TRUE , uses the REST API approach in Permission Explorer to retrieve more than 50,000 permission records. When FALSE , standard SOQL is used (limited to 50,000 records). |
FALSE | TRUE, FALSE | 2.6 |
Publish Platform Event Transaction Limit | Publish_Platform_Event_Transaction_Limit | Limits how many Application/Log Events can be published per transaction to avoid hitting the platform event governor limit for an org. | 150 | 1 - 150 | 4.0 |
Throw Error If Mock Is Not Found | Http_Mocking_Throw_Error_If_Not_Found | Determines whether to throw an exception if no matching mock endpoint is found for an outgoing request. If set to FALSE, the request proceeds with a real callout. | FALSE | TRUE, FALSE | 6.6 |
Trace ID Header Name | Trace_ID_Header_Name | Name of the HTTP header to include in Apex callouts (via rflib_HttpRequest ) for correlation (the RFLIB Trace ID). |
X-Trace-ID | Any string < 255 chars | 1.0 |
Trace ID Value Format | Trace_ID_Value_Format | Determines how the Trace ID is generated: either just the Salesforce Request ID or user-ID + Request ID. | USER18_REQUEST_ID | USER15_REQUEST_ID, USER18_REQUEST_ID, REQUEST_ID | 7.1 |
Use Default Workflow User for Log Events | Use_Default_Workflow_User_for_Log_Events | If TRUE (and a Default Flow User is set), record-triggered flows on Platform Events skip the Org-Wide Email Address requirement. Useful starting in Spring ’24. |
FALSE | TRUE, FALSE | 6.3 |