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
Bob BarraccaBob Barracca 

Listing cases for an Account

Does anyone know how to list cases for a given account?  If you look at the XML schema for the case object, it includes an AccountId field, but that field is not visable through the API. 

I am using WWW::Salesforce from Perl and when I try to run this:

    my $casequery = "select Id, CaseNumber from Case where AccountId = '$sfid'";
    my $caseresult = $sf->query('query' => $casequery);

I get:

    No such column 'AccountId' on entity 'Case'.

Any help would be greatly appreciated.

Thanks,
Bob