Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Trouble using local storage variable in Salesforce Integration soql query

Hi Pavan,

Please tell us detailed what q parameter you are referring to.
Show screen shot.

Lee Kraus
Posts: 0
Joined: Mon Jan 05, 2015 12:54 am

Trouble using local storage variable in Salesforce Integration soql query

I am having trouble.

This returns all
code
return 'PIN__c = '+value+'';
/code

This is the statement it generates in the app...
code
q=SELECT+Id%2C+Name%2C+PINc+%0AFROM+Employeec&WHERE=PIN__c+%3D+1234
/code

This is based on your syntax above, but gives an error.
code
return 'PIN__c = '"+value+"'&quot
/code

This is a successful SOQL statement in Salesforce. So I feel like I need the single quotes.
codeSELECT Id,Name,PINc FROM Employeec WHERE PIN__c = '1234'
/code
.

Can you help?

Lee Kraus
Posts: 0
Joined: Mon Jan 05, 2015 12:54 am

Trouble using local storage variable in Salesforce Integration soql query

I added the " before PIN and I am still getting all of the records, instead of the filter query.

codereturn "PIN__c = '"+value+"'&quot /code

Still need help, something isn't right.

Lee Kraus
Posts: 0
Joined: Mon Jan 05, 2015 12:54 am

Trouble using local storage variable in Salesforce Integration soql query

It seems to be returning a : after the WHERE statement. That is not right???

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Trouble using local storage variable in Salesforce Integration soql query

Hi Lee,

Please show us screen shots of your implementations and what is not works.

Thanks.

Lee Kraus
Posts: 0
Joined: Mon Jan 05, 2015 12:54 am

Trouble using local storage variable in Salesforce Integration soql query

I found a solution yesterday. The problem is that you cannot add a parameter to the SOQL statement within Appery.io. It is formatted incorrectly. You have to pass the entire query. I would recommend you at least provide feedback to a developer on this situation.

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

Trouble using local storage variable in Salesforce Integration soql query

Hello Lee,

Thanks for update.
Just to clarify, could you tell us what do you mean
" cannot add a parameter to the SOQL statement"

As I understood SQL statement it's just a string, and since Appery.io works with JS you can add any parameter to any string,

Lee Kraus
Posts: 0
Joined: Mon Jan 05, 2015 12:54 am

Trouble using local storage variable in Salesforce Integration soql query

Sure. I was able to pass the entire string via JS. What I wanted to do, was to add a Parameter to the Appery.io database service that is built into Appery.io. I am not a programmer and I made the assumption that your custom integration service would return a WHERE statement within the service. however, it formatted the statement with a ":" and rendered the wrong syntax. I had to go into the testing component of Chrome and determine what the system was doing and then re-create the proper syntax in JS. Again, as a non-programmer this took me a long time to solve. SOQL is the query language used by Salesforce. I think you should make it very clear that your Salesforce integration does not render SOQL statements correctly so that folks will know. Thanks for following up.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Trouble using local storage variable in Salesforce Integration soql query

Appery.io uses pure REST, so it doesn't contain any additional parameters and templates

Lee Kraus
Posts: 0
Joined: Mon Jan 05, 2015 12:54 am

Trouble using local storage variable in Salesforce Integration soql query

That is why you need to make users aware when using your Salesforce integration. It is limited.

Return to “Issues”