This project contains sample of the SalesForce models generated and Custom Salesforce EventBus
.
Watch: Salesforce Platform Events - Video
- Sing up for development sandbox with Saleforce: https://developer.salesforce.com/signup.
- Create Connected App in Salesforce.
- Create a Platform Event.
SalesForce objects are generated with the command line utility NetCoreForce.ModelGenerator
that is installed by the project.
It requires to have SalesForce admin account in order for the login to be successful and the model to be generated.
In addition specify all of the SF object that are desired to be generated in modelgenerator_config.json
file.
If the following is not set the tool authentication won't work correctly.
Connected App --> Manage -- Edit Policies --> Select Relax IP restrictions for active devices.
Run the following in the root of the project and provide with login credentials
dotnet modelgenerator generate
# or
dotnet modelgenerator generate --client-id --client-secret