Salesforce adding hyphen (-) to the Opportunity Name

This is Standard Salesforce functionality. By default, Salesforce allows you to add the name which starts with Account Name -. So that user can edit that name and use some other name. Generally people use Account Name-Opportunity Name.

Check this for more information.

How to subscribe to Salesforce Change Data Capture from MuleSoft?

To know about Change Data Capture, check the below link

Salesforce Change Data Capture:

MuleSoft Flow:

Subscribe Channel Configuration:

Transform Message Configuration:

Logger Configuration:


Change Data Capture in Salesforce

A CDC event, or change event, is a notification that Salesforce sends when a change to a Salesforce record occurs as part of a create, update, delete, or undelete operation. The notification includes all new and changed fields, and header fields that contain information about the change. For example, header fields indicate the type of change that triggered the event and the origin of the change. Change events support all custom objects and a subset of standard objects.

When to use Change Data Capture
Use change events to:

1. Receive notifications of Salesforce record changes, including create, update, delete, and undelete operations.
2. Capture field changes for all records.
3. Get broad access to all data regardless of sharing rules.
4. Get information about the change in the event header, such as the origin of the change, which allows ignoring changes that your client generates.
5. Perform data updates using transaction boundaries.
6. Use a versioned event schema.
7. Subscribe to mass changes in a scalable way.
8. Get access to retained events for up to three days.

Subscription Channels
Use the subscription channel that corresponds to the change notifications you want to receive. The channel name is case-sensitive.

All Change Events

A Standard Object

For example, the channel to subscribe to change events for Account records is:

A Custom Object

For example, the channel to subscribe to change events for Employee__c custom object records is:

How to set it up

1. Go to Change Data Capture.

2. Select and add objects from Available to Selected Entities.