How do I reassign Chargebee Apex class jobs in Salesforce?
Related Scenarios
How to handle Apex class job failures after transferring Chargebee app ownership.
Resolving issues with scheduled jobs in Salesforce when the original owner is deactivated.
First Image
Second Image
Solution
When transferring ownership of the Chargebee app in Salesforce, you may encounter issues with Apex classes such as CBLogDeletionBatch and SyncLogDeletionBatch not running. This typically occurs because these scheduled jobs are still owned by a deactivated user. Since these classes are part of the Chargebee managed package, they cannot be directly modified. Follow these steps to resolve the issue by reassigning the scheduled jobs to your user account:
Access Chargebee Settings in Salesforce:
Navigate to Settings > Configure Chargebee > Business Profile.
Ensure you have the necessary permissions to make changes.
Make a Dummy Update to Sync Log Frequency:
Go to the Sync Log Frequency setting.
Make a minor change, such as adjusting the frequency setting temporarily.
Save the changes. This action will trigger the reassignment of the scheduled jobs to your account.
Verify Scheduled Jobs:
Navigate to Setup > Jobs > Scheduled Jobs in Salesforce.
Confirm that the CBLogDeletionBatch and SyncLogDeletionBatch jobs are now listed under your user account.
Revert Any Temporary Changes:
If you made a temporary change to the Sync Log Frequency, revert it back to the original setting.
Save the changes to ensure your settings are as desired.
First Image
Second Image
Important Notes
Ensure that the user account you are transferring ownership to has the necessary permissions to manage scheduled jobs in Salesforce.
If you encounter any issues during this process, consider consulting with your Salesforce administrator for additional support.
Regularly review and update user permissions to prevent similar issues in the future.
This process is specific to the Chargebee managed package and may not apply to other Salesforce integrations.