Questions tagged [php]

PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language.

Filter by
Sorted by
Tagged with
0
votes
1answer
512 views

Using a single form to update multiple records [closed]

In our ExactTarget application we've used AMPscript and HTML to create forms which edit the data extensions. So far the edits have been to a single record per transaction. (edit the form content, ...
1
vote
1answer
282 views

How to use TriggerSend with an existing e-mail template? Php Coding

I am having trouble figuring out how to do the following; Lets say I have a customer that comes to our site, and buys two of our products. They provide their email, first name, and last name. And ...
0
votes
2answers
323 views

Start a Query Activity

Is there any sample code available that would show how to run an existing query activity via the SOAP api in php? There is a .net example on @Code but I'm not entirely sure of how to translate that to ...
0
votes
1answer
2k views

How to update the lead using php

Hi I have create the lead by using the following code but I dont know how to update the lead by using php. My Code: //Describing the Leads object and printing the array $describe = $...
2
votes
1answer
118 views

Query opportunity from whatid on events

I am using the php api and am curious whether it is possible to get information from two objects in one query. I'm basically trying to save API calls. What I would like to do is grab information from ...
0
votes
2answers
509 views

Null.Pointer Exception is getting when i calling from php [duplicate]

I am receiving a null reference exception when this webservice is called from php. I am unable to resolve this on my own. My Webservice code global class Ctest{ global class RequestClass{ ...
-1
votes
2answers
337 views

System.NullPointerException

while making a call from php i am getting the error Attempt to de-reference a null object Class.Demo.Insert: What is problem in my webservice? global class Ctest{ global class RequestClass{ ...
0
votes
3answers
1k views

Element {} item is invalid Can anyone explain this error?

When we are connecting to sfdc from php using the SOAP API we are receiving an error message: Element {} item is invalid How can i resolve my issuse ini_set("soap.wsdl_cache_enabled", "0"); ...
2
votes
2answers
924 views

What is the simplest way to save form data into Salesforce using the API?

I have created a simple PHP contact form in my website and I want to save the data into Salesforce. I thought it would be really simpler. I have looked into the SOAP API but it looked over kill for ...
2
votes
1answer
333 views

need help with exception failure when scheduling a send via SOAP API in PHP

I'm trying to create a scheduled send definition and I receive the following exception: [StatusMessage] => Exception occurred during [ScheduleEmailSendDefinition] ErrorID: 540318960 This is the code ...
1
vote
0answers
365 views

How can i refresh Token using fuelsdk for php?

Here is the error messsage status: code: 500 message: q0:FailedAuthentication The security token could not be authenticated or authorized ---> A critical error has occurred and has caused an ...
1
vote
1answer
248 views

Integrating php with Salesforce

I am asked to built a web application in php where the back end database is going to be Salesforce Objects. The scenario is that "users" (can be 10,000+) would register/log in to the application and ...
2
votes
2answers
843 views

Unable to access all DataExtension properties. Can't get the DataExtensionField(s)

I'm having this issue with the php soap-api where I'm just unable to connect a DataExtension to a DataExtensionField. To be more precise, I can't get the DataExentensionFields related to a ...
1
vote
1answer
165 views

Limiting results with the fuel sdk

I am using the PHP Fuel SDK to grab a bunch of send id results. I'm using a filter like this. $sendFilter = array('Property' => 'ID','SimpleOperator' => 'IN','Value' => $sendIDs); How can ...
2
votes
1answer
7k views

Upload files to a Case in SalesForce via REST API

I'm working on uploading attachments from my website to Salesforce, attachments should be related to case object. I'm using REST API in PHP. So problem is that I get an error when I tried to upload ...
1
vote
0answers
1k views

Getting a 400 error when using OAuth

Exception: https://login.salesforce.com/services/oauth2/token: curl= (OK); http=400 (Bad Request) I am getting this error when a few users are trying to use my page. But other users are fine. Is ...
0
votes
1answer
871 views

Can't add PHP to my VF page

I'm trying to add some simple php to a VF page and I'm getting this error: The processing instruction must begin with the name of the target Could someone point out where the problem is? <...
0
votes
0answers
84 views

Html file sent from list

From below link. Dynamic html mail process My individual file size is below 25 Kb,overall the folder size is above 115 Mb.All html newsletter inside it. what is the size of LIBXML_PARSEHUGE? ...
1
vote
1answer
258 views

Dynamic html mail process

I have sent the newsletter for 5375 user. But I am getting the below error Warning: DOMDocument::loadXML(): xmlSAX2Characters: huge text node: out of memory in Entity, line: 116199 in ET_Client.php ...
1
vote
1answer
271 views

Character issue in exact target subscriber full name

When I am added the attribute in to subscriber show the below character issue. I have used the code php fuel sdk.
1
vote
2answers
2k views

API getting username and password with exact target

My code snippet require('exacttarget_soap_client.php'); $wsdl = 'https://webservice.exacttarget.com/etframework.wsdl'; try { @$client = new ExactTargetSoapClient($wsdl, array('...
0
votes
1answer
211 views

Attributes add for subscribers

code snippet. require('ET_Client.php'); $myclient = new ET_Client(); $NameOfAttributeOne = "ExampleAttributeOne"; $NameOfAttributeTwo = "ExampleAttributeTwo"; $profileAttrOne = array("Name" => $...
7
votes
1answer
492 views

Dynamic html mail process through single list

I want to sent a mail through single list every week.html mail and text mail both. It is possible to create one list like "12548" and add the different user like "abc@gmail.com","xys@yahoo.com", .... ...
4
votes
2answers
130 views

Web App Authentication

I'm working on a simple PHP web app to pull some data from our Salesforce to an external database for use in a website. I am a novice with a lot of stuff here but my primary question is regarding ...
0
votes
1answer
320 views

Insert customer field to custom object

I am trying to insert a customer object into a custom object called Vouchers. I am fetching the object using: $customer_object = $this->apiCall("sobjects/Customers__c/someid", array(), 'GET'); ...
1
vote
1answer
1k views

Upsert custom object entry using entry ID to check if it exists to update or create new record?

I'm using this code to create an entry in a custom object which works. I'd like to replace the create with upsert to handle updating existing entries in the custom object when the entry ID is ...
2
votes
1answer
192 views

Salesforce API creating records AA2 appended to returned ID?

I'm using the Salesforce PHP Toolkit, when I create a record in a custom object the ID which is returned has AA2 appended to the end of the ID. Upserting Contact (existing) Array ( [0] => stdClass ...
1
vote
0answers
234 views

How to select dynamically linked items from Pricing Matrix via PHP REST API [closed]

I've been given the task of writing a new SalesForce application for our company. It's to be a sort of front-end for some clients. One of the functions is to allow these clients to build a product ...
8
votes
1answer
2k views

How to properly allow non-user/client login for external apps with the REST API?

So, I've been given the task of writing a web application for constructing and submitting quotes for my company. First off, I'm brand new to SalesForce, and I'm understanding it better and better ...
9
votes
2answers
3k views

Are workflows also triggered through the API?

Does anyone know if workflows are triggered by calls from the API? I have a workflow that is triggered by updating an opportunity. It then sends an outbound message to an external page that updates ...
3
votes
0answers
392 views

How to create, update and upsert leads with php toolkit using all or none header?

For Java, I found an example here, but I can't find any example using PHP Toolkit and I have any idea of how to do it. I have checked SforceBaseClient.php and the WSDL file. Inside WSDL file I've ...
2
votes
0answers
178 views

Is there a way to do Like against a list of Values using the PHP API?

I need a way to find all articles that are related to a list of tags. Assuming the Articles_c object has a column Tags_c that holds a comma separated list of all tags that are applied to the article. ...
1
vote
2answers
443 views

Zend client for Salesforce webservice

I am new to Salesforce and Zend. I succeeded to implement a regular php client, but I am struggling to do the same in Zend framework. Does anyone know how to do it? Code example (especialy its ...
5
votes
1answer
518 views

Echoing the Counts of each record through PHP using SOQL and GROUP BY [closed]

To start, this is the query: $query = "SELECT LeadSource, COUNT(id) Total FROM Lead WHERE CreatedDate > 2013-08-26T00:00:00Z AND CreatedDate < 2013-08-...
0
votes
1answer
2k views

Getting access token for portal users through OAuth [closed]

I need to get access token for portal users to access a site that was developed in salesforce .I should use OAuth2 method in php to get this access token.Can anyone help me out in solving this issue. ...
2
votes
1answer
255 views

Requests from One PHP form to two Salesforce orgs

We need to create a PHP form that will simultaneously send data to two Salesforce orgs, and update Accounts, Contacts, and some custom objects. Is it possible? What will be the best approach to ...
3
votes
1answer
2k views

Salesforce REST API example, error: failed with status 400

I am going through this example of REST web service to salesforce from PHP app, and I was getting the same errors described here. I tried to implement more permanent solution with curl_setopt($curl,...
12
votes
4answers
20k views

Accessing a Salesforce sandbox through API

can someone with salesforce API integration help me understand the requirements to access a client's Sandbox? I need to access the sandbox and pull data into our MySQL server. I hired a programmer ...
1
vote
1answer
361 views

Is it required to create parent and child records in single Salesforce create call of PHP toolkit?

When we are storing parent and child records in single salesforce create call using PHP toolkit is it required the External_ID_Field__c same name in both objects? or we can use any field which is ...
1
vote
1answer
326 views

Single items are all in on XML field when using PHP SOAP API

That's the snippet from it. $query = "SELECT Id, Body, Status from Idea"; //print_r($query."</br>"); $response = $mySforceConnection->query($query); // QueryResult object is only for PARTNER ...
3
votes
1answer
2k views

Is it possible to create parent and child records in single Salesforce create call of PHP toolkit?

In the official documentation there are examples of how to do it in Java and C# but there are no examples of how to do it in PHP using Salesforce PHP Toolkit: See paragraph "create() and Foreign Keys"...
0
votes
1answer
465 views

API Calls - What Script/ Page/ Etc Made The Call?

Currently, our Web Development team is trying to mop up years of scattered coding techniques (PHP based sites), and in recent weeks, something disturbing has happened. Our API calls to Salesforce ...
1
vote
2answers
1k views

PHP Soap API returning XML string

I have successfully connected to SalesForce using the Soap API and the Force.com toolkit for php. When returning records, however, I am getting part xml responses: SELECT Id, Name, ...
2
votes
1answer
138 views

Store data in call center

I am using the salesforce developer account and I have tried to get contact information using the SOAP API WSDL. I have got the data using this code like: require_once ('SforcePartnerClient.php'); $...
1
vote
1answer
4k views

Query Account history using API

Is there a way to query the account history using php and the API? I have some accounts that got updated unnecessarily and I need to view the history to programmatically update them all back to their ...
0
votes
1answer
117 views

How to insert a new donation and associate an existing user with donation?

I am using the PHP SOAP API and trying to insert a new user (or retrieve an existing) and then insert & attach a new donation, but there doesn't seem to exist a donation "standard object". Is ...
0
votes
0answers
2k views

Invalid Session ID error appearing randomly

I am using the PHP partner API for salesforce and am coming across a rather odd issue randomly. Here is the error message I am getting: Fatal error: Uncaught SoapFault exception: [sf:...
1
vote
2answers
2k views

Authentication Bearer in SOAP API?

UPDATE I created the below answer which allows you to use a REST application connection to (from there on) work on the SOAP API without needing to use SOAP's Login method, but instead relies ...
1
vote
2answers
2k views

php SOAP webservice failing to send an acknowledgement (ack) response to Salesforce

I am trying to set up a very simple webservice to consume salesforce outbound messages using php SoapServer class. The salesforce outbound messages are being successfully received by the ...
6
votes
2answers
920 views

Issue when creating a new Recurring Donation through Salesforce API

Recently I have hit an error as described below: Error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY Message: npe03.RecurringDonations: execution of AfterInsert caused by: System.NullPointerException: ...