I have created several custom fields for our Accounts in Salesforce. One is called "Date and Time Latest Login". Each Account also has an ID (in Salesforce) and an "External ID" which references our company-internal user ids.
Now, what I want to do is to update the field "Date and Time Latest Login" for the user with the "External ID" xyz with the current timestamp through the Developer Force Client for .NET. I know that Salesforce has a function called now()
to insert the current timestamp into a field, but I don't know how to call it or trigger it's execution through the API.
Therefore, I would like to know:
How can I populate or better yet update a timestamp field for a given entry with the current timestamp (without generating a timestamp in C# first and then pass that encapsulated in a JSON object)?
How can I update the entry for the user with the "External ID" "abc"? All examples I found so far create a new entry and then use the reference they get from that Create-Query and inject it into the update call (e.g. https://github.com/developerforce/Force.com-Toolkit-for-NET#update). How can I update an entry that already exists as an Account by supplying our "External ID" as the key?