Salesforce.comから連絡先をダウンロードするには、選択クエリを使用しています。以下に示されているように、「Malformed_Query」の例外を取得しています
-
09-10-2019 - |
質問
この選択クエリを使用していますが、これで何が悪いのかはわかりません。
id、contact.firstname、contact.lastname、contact.title、contact.title、department、contact.birthdate、contact.phone、contact.homephone、contact.mobilephone、contact.otherphone、contact.fax、contact.email、contact.mailingstreetet 、contact.MailingCity、Contact.MailingState、Contact.MailingCountry、Contact.MailingPostalCode、Contact.otherStreet、OtherCity、Contact.OtherState、OthAUNTRY、contact.OterPostalcode、contact.description、contact.account.name Where strcmp ( '%@'、id)= -1 "、lastContactid
解決
使用=、egを使用するクエリを生成する必要があります
select name from contact where id='005123123123123123'
したがって、これを使用してクエリを生成できます。
NSString *query = [NSString stringWithFormat:@"select name,etc from contact where id='%@'", lastContactId];
これが次のとおりです SOQLドキュメント より多くの例があります。
また、ページングをしようとしている場合は、クエリ全体を実行し、Query/Querymoreを使用して結果をページする必要があります。
所属していません StackOverflow