Activity Forums Salesforce® Discussions How do I query an activity in Salesforce?

  • Ayush

    Member
    October 13, 2020 at 11:46 am

    Select Id,YourCustomField__c from Task
    Select Id,YourCustomField__c from Event
    I believe Activities/Activity is a single logical object type holding both Tasks & Events.. and Tasks and Events are the concrete physical object types that you can run your queries on..
    Activities Custom fields is one common place for creating custom fields for both Tasks & Events..
    you can also run queries on OpenActivities object related to a particular object (like Lead, Account..)

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos