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.

https://help.salesforce.com/articleView?id=000193659&type=1

How to subscribe to Salesforce Change Data Capture from MuleSoft?

To know about Change Data Capture, check the below link

https://www.infallibletechie.com/2019/05/change-data-capture-in-salesforce.html

Salesforce Change Data Capture:



MuleSoft Flow:



Subscribe Channel Configuration:



Transform Message Configuration:



Logger Configuration:



Output:



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
/data/ChangeEvents

A Standard Object
/data/<Standard_Object_Name>ChangeEvent

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

A Custom Object
/data/<Custom_Object_Name>__ChangeEvent

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

How to set it up

1. Go to Change Data Capture.


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