• Sharsch
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
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
Hi,

  I am using query something like this

  select ActivityDateTime, Description , Subject , Location from Event where OwnerId = '" + userId + "'";

  I want to a select query that will will give me all the fields not just ActivityDateTime, Description and Subject.

  In SQL terms I mean select * from Event where ownerid = 'userid' ;

  Please let me know.

Thanks,
Sharsch


Message Edited by Sharsch on 08-04-2008 02:36 PM
Hi,

  I am using query something like this

  select ActivityDateTime, Description , Subject , Location from Event where OwnerId = '" + userId + "'";

  I want to a select query that will will give me all the fields not just ActivityDateTime, Description and Subject.

  In SQL terms I mean select * from Event where ownerid = 'userid' ;

  Please let me know.

Thanks,
Sharsch


Message Edited by Sharsch on 08-04-2008 02:36 PM