-
Sql request problem
Hi
until now I used php 5.6 and for sql request i had created a dynamic syntax like this:function getInfo($table,$where,$field,$path="",$single="yes"){ $mySforceConnection=connectTOsf($path); $res=array(); $tab_field=array(); $contact=""; $x=0;$z=0; try{ $query = "SELECT ".$field." from ".$table." ".$where; $response = $mySforceConnection->query($query); $queryResult = new QueryResult($response); $tab_field=explode(",",$field); for ($queryResult->rewind(); $queryResult->pointer < $queryResult->size; $queryResult->next()) { $record=$queryResult->current(); for($i=0;$i<count($tab_field);$i++) { if($tab_field[$i]=="Id") $value=$queryResult->current()->Id; else $value=$record->fields->$tab_field[$i]; ..... suite du traitement } } .........
It worked very well, but now with php7 the $value (not ID whose is static) are empty, and the values contain in $tab_field[$i] are correct.
Is somebody can help me please?
Thanks a lot in advance
Log In to reply.
Popular Salesforce Blogs
Our Top Picks From Salesforce Summer' 21 Pardot Updates
Another warm summer. Another feature-packed update by Salesforce. How do you make a good thing great? Simple. Provide meaningful, easy-to-implement updates and that is precisely…
Salesforce Chatbot: Streamlining Customer Service and Support
Introduction Salesforce Chatbot is an AI-powered conversational agent designed to interact with customers in a natural and human-like manner. It leverages advanced NLP algorithms and…
TRIGGERS AND ORDER OF EXECUTION.
This topic came up again today in reference to a trigger to modify lead assignments. It's always important to keep the order of these events…
Popular Salesforce Videos
How to Nurture Leads in Salesforce Account Engagement? | Forms
Discover how Salesforce Account Engagement (also known as Pardot) helps you create and embed personalized forms, enhancing the lead nurturing experience. To show its capabilities,…
Non-technical But Want to Build Career in Salesforce?
In this video Shrey gave the answer to the following questions: 1. What is the next step after doing Certification in Salesforce Administrator? 2. How…
Salesforce Interface Sends a Command With Parameters to UiPath Assistant Using JavaScript
Salesforce interface sends a command with parameters to UiPath Assistant using Robotjs Code: https://github.com/cristinegulescu/startUiPathFromSalesforce/blob/master/SalesForceLocal.txt
Popular Salesforce Infographics
5 Salesforce User Adoption Quick Wins to Focus on Now
Salesforce user adoption is a funny business! To put it plainly, user adoption on Salesforce is just enabling a user to use it as the…
Best Salesforce1 SMS Mobile App - 360 SMS App
360 SMS App is a One-stop texting solution platform for almost all kinds of industries including Healthcare, Hospitality, Education, etc. It can be your saviour…
10 MUST HAVE Qualities Your Salesforce Administrator Should Have
Does your organization have a Salesforce Admin? If you use Salesforce or are in the process of implementing it, the role of Salesforce Admin is…