Set Up Scheduled Jobs
- Your batch jobs must be configured to use an account with Salesforce System Administrator access and these custom permission sets:
- Evisort Adminpermission set.
- Evisort Metadata Custom Field Permissionpermission set.
- Select the check boxCustom Log Send Diagnostic Data. See Enable Custom Log Send Diagnostic Data.
You must set up scheduled jobs to keep Salesforce and Contract Intelligence in sync for field and provision updates. By automating these processes, you ensure that both Contract Intelligence users and Salesforce users have access to the most current contract information, including AI-extracted fields and provisions.
This task involves scheduling Apex Classes as jobs, also called Apex batch jobs.
- In Salesforce, access Setup >Scheduled Jobs.
- ClickSchedule Apex.
- Schedule theImport Custom Field and Provision Definitionsjob.This job imports any new or deleted definitions for custom fields and provisions from Contract Intelligence. It also re-validates any object field mappings to check for any deleted or renamed Contract Intelligence fields. This job requires theModify All Datapermission because it modifies the data structures within the Salesforce Connector schema.FieldValueJob NameSuggested Name: Import Custom Field and Provision DefinitionsApex ClassCustomFieldSyncSchedulable (namespace: evisort)FrequencyDaily
- Schedule theImport Document Field and Provision Valuesjob:This job imports updates to active fields and provisions for linked Salesforce documents in Contract Intelligence and stores those values in the Salesforce Connector Evisort objects.It pulls document metadata from Contract Intelligence and creates/updates corresponding Evisort__c records in Salesforce.FieldValueJob NameSuggested Name: Import Document Field and Provision ValuesApex ClassDocumentSyncSchedulable (namespace: evisort)Frequency
- Minimum: Daily
- Best Practice: Hourly
Field and provision values are only imported if they are markedActive. - Schedule theExport Object Fields to Contract Intelligence Documentsjob:This job exports Object fields values to the linked Contract Intelligence document. This occurs when a document is first linked and also whenever the field values change.FieldValueJob NameSuggested Name: Export Object Fields to Contract Intelligence DocumentsApex ClassEvisortMetadataSyncBatchV2 (namespace: evisort)Frequency
- Minimum: Daily
- Best Practice: Hourly
When using Salesforce simple scheduling, send the end date far into the future (100 years). This prevents the job from eventually stopping, ensuring data continues to synchronize with Contract Intelligence.