function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SharschSharsch 

Get data from custom fields

Hi,

  I am trying to display data contained in Events. I was able to get data from the pre-specified fields, but I am not able to identify how to get data from Custom Fields.

Like for example, here part of my code:

QueryResult qr = null;
qr = binding.query("Select e.AccountId, e.Activity_Description__c from Event e where e.OwnerId = '" + userOwnerId + "'");

for (int j = 0; j < qr.records.Length; j++)
{
 Event eve = (Event)qr.records[j];
 Console.WriteLine((eve.AccountId.toString());
}

Where,

AccountId - Pre-specified field
Activity_Description__c - Custom field

How do I print whats present in Activity_Description__c custom field?

Thanks,
Sharsch
SuperfellSuperfell
exactly the same way, eve.Activity_Description__c (remember to import an upto date WSDL if yo recently added the custom field)