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

learn more… | top users | synonyms

2
votes
1answer
28 views

Updating a form in salesforce from a external website

im having trouble with my webservice when updating my form, when i click update the message service says it has modified the data within salesforce, ive had success doing this abit further up in the ...
1
vote
1answer
18 views

Link CaseComment to a Contact

I need to insert cases in salesforce from an external site. I'm using the Force.com_Toolkit_for_PHP: http://wiki.developerforce.com/index.php/Getting_Started_with_the_Force.com_Toolkit_for_PHP I can ...
1
vote
1answer
26 views

PHP and Salesforce API not returning results

If I use Force.com explorer or workbench.developerforce.com this query works in those tools: SELECT Id, ContentDocumentId, Title, VersionNumber, PathOnClient FROM ContentVersion WHERE ...
3
votes
1answer
17 views

PHP ExactTarget API returns Empty Response when trying to connect

I'm just trying to do the basic connection to the service, but I'm getting the following message on the page: Unable to load the webpage because the server sent no data. Error code: ...
2
votes
0answers
59 views

Email Send Definition using Data filtered Data Extension

I try to set an Email Send Definition with a Data Extension which is filterd by a Data Filter (exclusionlist). Sending without the Data Filter is no problem but after applying the Data Filter it ...
0
votes
1answer
23 views

AMPscript Encrypt with PHP Decrypt?

I am trying to understand how AMPscript Encrypt/DecryptSymmetric might work with openssl or mcrypt in php. Essentially - is there a way to use AMPscript to encrypt, and php to decrypt? It seems like ...
2
votes
2answers
30 views

Create A Complex Filter Part using ExactTarget PHP API

I have created a function to handle a retrieve request using the ExactTarget API with PHP. The problem is that there's no documentation for using Complex Filter Parts in retrieve requests using the ...
1
vote
0answers
7 views

Bounced emails with fuel sdk php

I'm trying to retrieve bounced mails with Fuel SDK PHP ET_BounceEvent object: require('ET_Client.php'); $myclient = new ET_Client(); $bounceevent = new ET_BounceEvent(); $bounceevent->authStub = ...
0
votes
1answer
30 views

Getting the correct data extension rows in AMPScript

Our subscriber row has many rows, two of which are SubscriberKey, and ModifiedDate I have a data extension that contains info about what the subscriber purchased it is a one to many relationship, ...
0
votes
1answer
47 views

form to update/submit multiple records using AMPscript [closed]

In an AMPscript form, how do we have a single submit (post) update multiple records? I'm using a checkbox to indicate that there are numerous records (data extension rows) which need to be upserted. ...
1
vote
1answer
36 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
0answers
18 views

how to integrate Salesforce with php

I want to save salesforce data in mysql server. Can anyone suggest any code samples for it. Thank you Suja
0
votes
1answer
25 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
50 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 = ...
1
vote
0answers
24 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
35 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
1answer
97 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 ...
0
votes
2answers
141 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"); ...
0
votes
0answers
55 views

salesforce Element {}item invalid at this location in php side

When we are connecting to sfdc using the SOAP API we are receiving an error message: Element {} item is invalid Can anyone explain this error ? require_once ('SforcePartnerClient.php'); ...
1
vote
2answers
55 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
38 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
39 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 ...
1
vote
1answer
45 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
1answer
43 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
33 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
285 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 ...
0
votes
0answers
86 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
76 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
56 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
77 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
69 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
82 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, ...
0
votes
1answer
56 views

Attributes add for subscribers

code snippet. require('ET_Client.php'); $myclient = new ET_Client(); $NameOfAttributeOne = "ExampleAttributeOne"; $NameOfAttributeTwo = "ExampleAttributeTwo"; $profileAttrOne = array("Name" => ...
5
votes
1answer
161 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
62 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
56 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
136 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
59 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
31 views

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

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 ...
5
votes
1answer
221 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 ...
3
votes
2answers
225 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 ...
2
votes
0answers
87 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 ...
1
vote
0answers
28 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
151 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 ...
3
votes
0answers
115 views

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

To start, this is the query: $query = "SELECT LeadSource, COUNT(id) Total FROM Lead WHERE CreatedDate > 2013-08-26T00:00:00Z AND CreatedDate < ...
0
votes
1answer
513 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
570 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 ...
4
votes
2answers
681 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
88 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
0answers
68 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 ...