Baucore

Set Up Baucore Opportunity Sync Service

Diese Seite ist noch nicht auf Deutsch verfügbar. Kontaktieren Sie uns unter support@baucore.app, wenn Sie Fragen haben.
Taskadmin

This article covers setup for V1 (single Opportunity per Project). If you’re setting up Opportunity Management for a new org, use V2 instead — see Setup Options for Opportunity Management V2.

Even when users manage their projects through Opportunities, all Baucore processes and calculations run on a Project record behind the scenes. Baucore delivers a sync service to keep Opportunity and Project data in sync — for every Opportunity record, there is also a corresponding Project record.

Enable the Opportunity2Project Sync Service

Go to Setup → Custom Metadata Types → Baucore Settings → Manage Records → Edit → Enable Opportunity2Project Sync and set the value to true.

Set up the fields to sync

Before adding mappings, adapt the page layout to show the corresponding fields.

  1. Go to Setup → Custom Metadata Types → Baucore Sync Field Mapping → Edit on Page Layouts.
  2. Put these fields on the layout: Source Object, Source Field, Target Object, Target Field, Target Field Default Value, Target Field String, PicklistMapping, Reverse, Inactive.
  3. Go to Setup → Custom Metadata Types → Baucore Sync Field Mapping → Manage Records → New to create a mapping.
FieldDescription
LabelAny label as a string.
Custom Metadata Record NameAny record name as a string.
Source ObjectSelect Project.
Source FieldSelect the Project field to map from.
Target ObjectSelect Opportunity.
Target FieldSelect the Opportunity field to map to.
Target Field Default ValueDefault value used if the target field is empty.
Target Field StringIf Target Field is a compound field, enter the actual field name here.
PicklistMappingIf the field is a picklist that needs value mapping, set to true and provide the mapping in Baucore Sync Picklist Mapping.
ReverseThe mapping is done from Opportunity to Project instead.
InactiveMarks the mapping as inactive.

Picklist mapping

Use Baucore Sync Picklist Mapping to map picklist values used in the Opportunity2Project sync.

  1. Go to Setup → Custom Metadata Types → Baucore Sync Picklist Mapping → Edit on Page Layouts, and put these fields on the layout: Picklist Source Value, Picklist Target Value, Sync Field Mapping, Inactive.
  2. Go to Setup → Custom Metadata Types → Baucore Sync Picklist Mapping → Manage Records → New to create a mapping.
FieldDescription
LabelAny label as a string.
Baucore Sync Picklist Mapping NameAny name as a string.
Picklist Source ValueAPI name of the picklist value on the source field.
Picklist Target ValueAPI name of the picklist value on the target field.
Sync Field MappingThe Baucore Field Mapping record this mapping applies to.
InactiveMarks the mapping as inactive.

Create the batch job

  1. Go to Setup → Apex Classes → Schedule Apex Class.
  2. Enter Sync opportunities as the job name.
  3. Select syncProject_Schedule as the Apex class.
  4. Choose the execution frequency and click Save.

Relevant fields for the sync process

ObjectField API name
Projectibsbaucore__Opportunity__c
Participantsibsbaucore__Opportunity__c
Opportunitiesibsbaucore__Bauobjekt__c, ibsbaucore__Sync_Last_Date__c, ibsbaucore__Sync_Status__c, ibsbaucore__TriggerSync__c
Contact Roleibsbaucore__Bauobjekt__c, ibsbaucore__Beteiligte__c, ibsbaucore__Sync_Last_Date__c, ibsbaucore__Sync_Status__c, ibsbaucore__TriggerSync__c

Synchronization settings

Under Setup → Custom Metadata Types → Baucore Sync Setting → Manage Baucore Sync Settings:

SettingDescription
Stop SyncIf set to true, all background sync processes stop.
Sync Batch SizeThe size of the batches processed at once.

Field mapping: Project Lead → Opportunity

The mapping settings for Project Closed on and Project Project Phase require manual setup before use.

Project Phase

No default picklist mapping is delivered for Project Phase — set this up manually.

Project Closed on

Since an Opportunity record needs a “Closed On” date to be created, but that date isn’t known on the Project until later, set a default value to automatically date the Opportunity a certain time in the future. Enter a number in Target Field Default Value — the number of months the date is moved forward from the current date.

Error notifications

Custom notifications can be shown and/or emailed if an error occurs during this process.

  • In-app notifications: go to Setup → Custom Metadata Types → Baucore Sync Setting → Manage Baucore Sync Settings → Custom Notification. Set Value to true to enable, false to disable.
  • Email notifications: same path, but the Email Notification record. Set Value to true to enable, false to disable.
  • The notification and email titles are configured through the custom labels sync_service_error_notification_title and sync_service_error_notification_message. Go to Setup → Custom Labels, open the label, and add the translation for the desired language.

If an error occurs during this process, it’s stored on the Sync_Error__c field on both the Project and Opportunity records. This field isn’t on either page layout by default, but an administrator can add it.

Still need help?

Our support team is happy to help with anything not covered here.

Contact support