You need to sign in to do that
Don't have an account?
Sharsch
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
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
Superfell
exactly the same way, eve.Activity_Description__c (remember to import an upto date WSDL if yo recently added the custom field)