in Education by
I am using Force.com Toolkit for PHP (Version 20.0) to integrate with Salesforce. I would like to look up some Contact via the email field and print in on page if the condition is met. Here is the query I used: SELECT Name, Email, npe01__HomeEmail__c, npe01__WorkEmail__c, npe01__AlternateEmail__c FROM Contact WHERE Email = "[email protected]" In Workbench everything works fine, however, when I use the same query in PHP I get the following error: 'MALFORMED_QUERY: npe01__AlternateEmail__c FROM Contact WHERE Email="[email protected]" ERROR at Row:1:Column:112 Bind variables only allowed in Apex code' What would be best practice to help me solve this problem? Thanks! Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
You can try the following queries: SELECT Name, Email, npe01__HomeEmail__c, npe01__WorkEmail__c, npe01__AlternateEmail__c FROM Contact WHERE Email = '[email protected]' For example: $donor_email = '[email protected]'; $query = 'SELECT Name, Email, npe01__HomeEmail__c, npe01__WorkEmail__c, npe01__AlternateEmail__c FROM Contact WHERE Email=\''.$donor_email.'\'';

Related questions

0 votes
    I have an email template that I would like to launch from within the case using a Link/Button. I see the ... Any help you be great Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I have an aspnetboilerplate template, .netcore & angular (free version). I am trying to find a way ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    Working on an app with notification via e-mail. I'd like to run test with out sending e-mails to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    Working on an app with notification via e-mail. I'd like to run test with out sending e-mails to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    Can you suggest any alternative for hosting multiple mailboxes for multiple websites on Azure? I've been using ... shutting down. Select the correct answer from above options...
asked Jan 20, 2022 in Education by JackTerrance
0 votes
    I would really appreciate if someone can guide me to check if a particular field is included in update call inside ... . Many thanks. Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    How do I check if a field is Blank in Salesforce using SOQL. Thanks Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    Salesforce Einstein is considered to be the __________. A. Visualizer B. Personal Calculator C. Personal Data Scientist...
asked Nov 1, 2022 in Education by JackTerrance
0 votes
    We're currently looking at using the Force.com platform as our development platform and the sales guys and the ... such a platform. Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I have recently discovered that salesforce.com is much more than an online CRM after coming across a Morrison's Case ... ' .Net route? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I wanted to map custom fields of lead to map with custom field of contact' when converted using binding.convertLead ... should be made Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    The Salesforce.com API seems to assume that you will always use the app as an active user. Their ... require user interaction? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I have a page with a form that posts to salesforce.com's webto Lead service. I am trying to make an ... receiving website can see? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    The Salesforce.com API seems to assume that you will always use the app as an active user. Their ... require user interaction? Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    I have a page with a form that posts to salesforce.com's webto Lead service. I am trying to make an ... receiving website can see? Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
...