diff --git a/force-app/monitoring/classes/MonitorFssIntegration_Schedule.cls b/force-app/monitoring/classes/MonitorFssIntegration_Schedule.cls index ab18788b..5cae5f58 100644 --- a/force-app/monitoring/classes/MonitorFssIntegration_Schedule.cls +++ b/force-app/monitoring/classes/MonitorFssIntegration_Schedule.cls @@ -11,7 +11,8 @@ public with sharing class MonitorFssIntegration_Schedule implements Schedulable 'GET_UNIT_CONTACT_INFORMATION', new Map{ 'enhetsnummer' => '0104' } ); - apiCtrl.addServiceAuthHeader('gcpsaasproxy'); +apiCtrl.setSystemContext(); +apiCtrl.addServiceAuthHeader('gcpsaasproxy'); apiCtrl.doCallout(); String bodyString = apiCtrl.getResponse().getBody();