• Natasha
  • NEWBIE
  • 0 Points
  • Member since 2004

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies

Hi,
I need records as a result of query such as:
Select Id, Description from Task where Subject ='Profile Email : Season's Greetings'
But this gives me a MALFORMED QUERY Exception. Using "includes" also does not work in this case. Query such as
Select Id, Description from Task where Subject includes ('Profile Email : Season's Greetings')
also runs into exception due to the single quotes present afte the word Season. Double Quotes are not allowed in SOQL.
Please suggest me the best way in which such queries can be invoked?

Natasha

Hi All,
I am looking for some means of running 2 queries but the results of one should be depenedent on the results of other - so basically a JOIN.
 in usual SQL I am looking for results as would be returned by:

select C.id, C.accountid, C.last name, A.AccountName
from Contact C
JOIN Account A
ON C.accountid=A.id
WHERE A.Website='abcd'

Could someone please help me with achieving equivalent results through the SF API calls? What is the best way to achieve this?
Looking forward to some early responses...
Natasha