• Mario P
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi,

I tried one standard query from Apex Web Services API Developer's Guide topic Relationship Queries
======
SELECT Contact.FirstName, Contact.Account.Name from Contact
======
and I received an error: "SOQL statements  can't query related data"

When I try to create querues using just only one object/table it works fine, but when there are more than one - it fails.

As I understand sample queries (from RTFM) with predefined objects/tables should work fine.

What the problem is?

Thanks a lot in advance.
  • September 18, 2007
  • Like
  • 0
Hi,

I tried one standard query from Apex Web Services API Developer's Guide topic Relationship Queries
======
SELECT Contact.FirstName, Contact.Account.Name from Contact
======
and I received an error: "SOQL statements  can't query related data"

When I try to create querues using just only one object/table it works fine, but when there are more than one - it fails.

As I understand sample queries (from RTFM) with predefined objects/tables should work fine.

What the problem is?

Thanks a lot in advance.
  • September 18, 2007
  • Like
  • 0
Hi,

I tried one standard query from Apex Web Services API Developer's Guide topic Relationship Queries
======
SELECT Contact.FirstName, Contact.Account.Name from Contact
======
and I received an error: "SOQL statements  can't query related data"

When I try to create querues using just only one object/table it works fine, but when there are more than one - it fails.

As I understand sample queries (from RTFM) with predefined objects/tables should work fine.

What the problem is?

Thanks a lot in advance.
  • September 18, 2007
  • Like
  • 0