We have our system from which we want to withdraw records (for example, contact, account, opportunity, etc.) in SalesForce.
For this, we used ForceToolKit for .Net . We can insert / update records successfully using the ForceToolKit functions.
Example:
dynamic contact = new ExpandoObject();
contact.FirstName = "FirstName";
contact.LastName = "Last";
contact.Email = "test@test.com";
contact.MobilePhone = "1234567890";
var successResponse = await forceClient.CreateAsync("Contact", contactList);
The problem we are facing is listed below.
In our source system, we have several custom fields that are not a standard field in SalesForce and may differ for different users.
So, first we need to map custom fields between our source system and SalesForce.
We want to get all the fields of the SalesForce object for matching fields.
- ForceToolkitForNet.
, QueryById dynamic, .
var contactFields = await forceClient.QueryByIdAsync<dynamic>("Contact", successResponse.Id);
: "SELECT FROM Contact where Id = '{contactId}' Incorrect syntax near FROM".
SalesForce.
- SalesForceToolkit SalesForceApi?