To see the full demonstration of connecting to SalesForce, see the page dedicated to the SalesForce Connector
PerigeeApplication.ApplicationNoInit("SalesForce Demo", (c) => {
//Replace the details here
var x509 = new X509Certificate2();
c.AddSalesForceWatch<SFAccount>("WatchAccounts", "Account", "ConsumerKey", "ConsumerSecret, "User", x509, "login",
(ct, log, updated, deleted) => {
//updated records, bound back to an SFAccount class
foreach (var item in updated)
{
Console.WriteLine($"[{item.id}] {item.AccountName}({item.Type})");
}
//Deleted ID's, along with the deleted date
foreach (var item in deleted)
{
Console.WriteLine($"{item.id} - {item.deletedDate:G}");
}
});
});