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

0
votes
1answer
14 views

PHP Fuel SDK - Sending TriggeredSend Asynchronously

It does not appear that I can send an asynchronous TriggeredSend call to the system with the PHP SDK. Am I missing something? I can add Priority to the props which gets attached to the ...
0
votes
1answer
14 views

ExactTarget PHP FuelSDK with Sandbox Account: Unable to Auth

I simply cannot seem to get authenticated. I've copied/pasted the ID and secret. No go. Fatal error: Uncaught exception 'Exception' with message 'Unable to validate App Keys(ClientID/ClientSecret) ...
0
votes
0answers
6 views

Querying Master Object From Child Object PHP Toolkit

I am a bit new to salesforce and coding. I have integrated my salesforce through php toolkit and is trying to update opportunity and account through a web form. Uptil now I am successful in updating ...
0
votes
1answer
46 views

PHP API (SOAP nor REST) Triggered Send Not Working

I've tried this: $url = "https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:ac_alerts/send"; $content = json_encode('"To": {"Address": "example@example.com", "SubscriberKey": ...
2
votes
1answer
25 views

Is there anyway to delete a SF object record using the PHP toolkit?

I've this object relation: Group_Test__c <---> AssociationGroupOrder <--> Order So I can have a N:N realtion between Groups and Orders. I'm working with the PHP Toolkit. ...
2
votes
1answer
11 views

Columns aren't being returned from api query

I'm using the php SF api with the soap client. I've had a script running that pulls in some info from our SF database and does some stuff with it on our local database. Before, this was the query I ...
0
votes
1answer
15 views

Insert data into custom object with php salesforce toolkit

I can insert data to salesforce in any standard object Like Leads, Contacts etc . But my client has created a custom object . That object name is survey , and there are several survey questions Like ...
1
vote
1answer
27 views

ET Subscriber added via SOAP API, but does not appear in marketing cloud

I am using a client's ExactTarget credentials (API User = yes) to add email subscribers using the SOAP API from my webapp. The API call returns a "Subscriber created" msg, but the subscriber info ...
0
votes
1answer
32 views

Fuel SDK PHP version: SOAP-ERROR: Parsing WSDL: Couldn't load from 'ExactTargetWSDL.xml

I'm trying to integrate the Fuel SDK for PHP. Here's my config.php: <?php return array( 'appsignature' => 'none', 'clientid' => 'CLIENT_ID_IN_APP_CENTER', 'clientsecret' ...
0
votes
0answers
15 views

Populating custom field on Standard Object using SOAP API?

How does one populate a custom field on a Standard Object using the SOAP API in PHP? I am using PHP. $contact->Company = "First"; $contact->FirstName = "First"; $contact->LastName = "Last"; ...
1
vote
1answer
20 views

Send TriggeredSend with data from DataExtension

I currently have: DataExtension TriggeredSend E-Mail template All Subscriber List What I now want to do is the following: I want to send a TriggeredSend and insert data into the E-Mail from the ...
0
votes
0answers
44 views

Uploading base64 file to Attachment doesn't work

I have image data in base64 format, so when I upload the base64 file, it says it uploads successfully, but when I go to the Salesforce admin, my Attachment is broken. I click on "View File" and it ...
3
votes
1answer
84 views

Salesforce SSO and SimpleSAMLphp - not redirecting to startURL on logon

I am using SimpleSAMLphp as an Idp and Salesforce as the Sp. I have it working so that I can go to the Salesforce login page and use the additional button to logon using SSO, as per step 1 in this ...
1
vote
1answer
91 views

POST to SOAP Salesforce API in PHP

I am implementing my own SOAP API with Salesforce. I am not using the Salesforce PHP Client add-on. I am trying to create a new object, such as a Contact or Lead, via the API. My code to POST the ...
2
votes
1answer
45 views

PHP API - Unable to query fields in custom objects

I'm trying to query for information using the PHP API (v20) and I am unable to query any custom object fields. The only one that appears to work is Id. It gives no error, in fact, the query itself ...
1
vote
1answer
43 views

OAuth Token Management - Fuel SDK (PHP)

What are recommended best practices for reusing the OAuth token for the ExactTarget Fuel SDK? On my website once I get a valid OAuth token, I cache it for 15 minutes and use that same token for all ...
0
votes
2answers
104 views

Select AccountId from Order

I'm new to Salesforce and SOQL but not PHP and SQL, therefore this question is a little odd to myself that I can't figure it out. The Enterprise SOQL query runs fine and presents the desired results ...
0
votes
0answers
24 views

Add contact to opportunity throught php toolkit

i wonder how to add contact to opportunity throught php toolkit? i have already added contact : $records = new stdclass(); $records = array(); $records[0]->FirstName = 'Firstname'; ...
0
votes
0answers
26 views

What are the values for “Full Name” “First Name” and “Last Name” as they are entered into the props array for setting?

I'm trying to build a custom opt out page. The page will have a form to update the user's profile information. My code looks like this: function updateUser($idNum, $userEmail, $fullName, $firstName, ...
1
vote
0answers
37 views

ExactTarget - FuelSDK-PHP, error: Server did not recognize the value of HTTP Header SOAPAction

I am working in our ExactTarget FuelSDK-PHP integration over my local PHP server, that is a : PHP 5.5.9-1ubuntu4.5 (cli) Also I have installed in my local PHP server the extensions of: mcrypt : ...
1
vote
0answers
38 views

Salesforce API reset password not working for certain accounts

I have a Salesforce support cases self-service partner portal built using the Force.com PHP Toolkit. Everything is working fine with the portal except for certain users cannot use the "Forgot ...
2
votes
0answers
39 views

Updating Automation Object via Fuel SDK

I'm having trouble getting an Automation to update via the Fuel SDK (PHP flavor). I can retrieve the object's properties, but cannot seem to update. My code: $objectType = 'Automation'; $properties = ...
0
votes
0answers
36 views

Missing required lookup field when transferring data from org to org using API and External Id

I am migrating data using PHP Toolkit from one org to another using the source org Id as the External Id in the destination org. The problem is that any data with a lookup field does not get upserted ...
0
votes
1answer
33 views

Allow access to salesforce from any domain using php

I am a newbie to Salesforce and need to allow access to it using my website. I have gone through the documentation provided by salesforce but it did not help. ...
2
votes
1answer
101 views

Returning Oauth token with REST API via PHP arrays when trying to send new contacts

In the salesforce REST API documentation, it tells how the system can give Oauth Tokens (https://code.exacttarget.com/apis-sdks/rest-api/v1/auth/requestToken.html ) But I don't seen any documentation ...
1
vote
1answer
42 views

How to update a send definition using exact target's api

I would like to update the list id associated to a send definition. How do we go about doing this?
1
vote
0answers
21 views

Subscriber ContinueRequest Errors when original request has 2 complex filters

I am receiving this error message as the result of this code: "OverallStatus"]=> string(70) "Error: The multi-part identifier "LSD.CreatedDate" could not be bound." Is this a known issue and are ...
0
votes
1answer
34 views

Accessing Data retrieved using Fuel SDK?

I'm creating a lightweight opt-out/profile center using the the Fuel SDK. My method is to use the email address a person inputs to retrieve the subscriber's ID. This ID will then be used to either ...
0
votes
1answer
41 views

Outbound messages and simplexml_load_string (PHP) string comparison

I am trying to use an IF statement in PHP to set a variable based on the value of an object returned by an outbound message being processed with simplexml_load_string(). It seems that comparing the ...
0
votes
1answer
60 views

Salesforce PHP API Attachment Upload

I am trying to upload an attachment using the following function. public function uploadAttachment($attachmentBody, $attachmentBodyLength, $attachmentName) { $createFields = array( ...
0
votes
1answer
70 views

How can i convert sobject to xml using php soapclient?

I am using php soapclient to fetch data from Salesforce. I get a sObject back. I need to do field mapping, hence I need to convert this result into xml so that I can have a xslt to convert this data ...
1
vote
1answer
76 views

What is the Fuel SDK Best Practice for updating a subscriber's information?

I am trying to understand how the patch() function works in the new Fuel SDK. To update a subscriber's status: require('ET_Client.php'); $myclient = new ET_Client(); $subscriber = new ...
0
votes
0answers
16 views

ET_Client Unsubscribe not working all the time

I just finished creating an unsubscribe form that links to the Exacttarget API but I've noticed an interesting problem. When I unsubscribe my test user, everything works as expected. When I try to ...
0
votes
1answer
36 views

Creating a case with PHP Toolkit 20.0 fails

I'm trying to create a case with PHP Toolkit 20.0 (Enterprise) and I can't get it to work. PHP: $sObject = new stdclass(); $sObject->ZCN_number__c = $_SESSION['zcn']; $sObject->ContactId = ...
1
vote
1answer
30 views

Is it possible to integrate RSForm Pro with the Exacttarget API?

I've done quite a bit of research on Google about this but there doesn't seem to be much information on this subject. Is it possible to integrate RSForm Pro with the Exacttarget API? If so, where does ...
0
votes
1answer
36 views

ExactTarget Enterprise PHP/API How do I select the Enterprise Unit ID

We have used the PHP code to do Trigger Send Definition with the Standard edition for the past 2 years now, and work very well. Now we are moving to the Entreprise edition and I was told by ET ...
0
votes
0answers
42 views

Display query results in PHP

I try this code to display results: <?php define("SOAP_CLIENT_BASEDIR", "soapclient"); require_once (SOAP_CLIENT_BASEDIR.'/SforceEnterpriseClient.php'); require_once ('userAuth.php'); ...
1
vote
2answers
42 views

Add records to an objece in Salesforce with PHP

I am trying to create a record in Salesforce Enterprise but I get an error message. The code: <?php define("SOAP_CLIENT_BASEDIR", "soapclient"); require_once ...
2
votes
1answer
109 views

Can I Upload Documents from PHP Toolkit?

I want to upload files into the document library. Is it possible to do this with the PHP Toolkit?
0
votes
1answer
21 views

Is there a way to change the profile center URL?

In an email, if I want to redirect to a custom unsubscribe page, is there a way to change the value of the %%profile_center_url%% so that it goes to a new page instead of the default?
0
votes
0answers
14 views

AMPScript Joomla Custom Unsubscribe Page

I'm trying to create a custom profile center using the ET_Client API in Joomla. The documentation seems to be a bit hard to follow on the process that needs to be completed. I have the php code ...
1
vote
1answer
37 views

What is the difference between the ET_Client class in the API an the ExacttargetSoapClient?

Both seem to have the ability to do unsubscribes, adds, retrieves, deletes... pretty much anything I can think of. But the ExacttargetSoapClient class requires a username and password whereas the ...
1
vote
1answer
33 views

How do you unsubscribe a subscriber from just one list

I'm new to Salesforce development and specifically Exacttarget development. I need to write a custom opt-out page (that can be branded). So when a user clicks "Unsubscribe" they are taken to a ...
2
votes
1answer
73 views

Adding new values to Custom Picklist (PHP Toolkit)

I'm using the PHP Toolkit for integrating a web application with my Salesforce account. I have this custom object: Individual__Choice__c that contains this custom Picklist: Primary_Option__c ...
2
votes
1answer
81 views

How to create a managed application and namespace for REST API

I am following up the post here: REST API without Connected App Although the answer was very helpful, I'm new to SF and need some clarity on some things: 1. How and why can a separate (free ...
1
vote
2answers
35 views

Is Salesforce PHP Api supports TLS by default

Does the Salesforce PHP API supports TLS by default?, if yes how can i check it/prove it I googled about this, I get the related information but it's not exact.
3
votes
1answer
90 views

API PHP Partner WSDL REQUIRED_FIELDS_MISSING

I am having an issue with the Partner WSDL. When attempting to create a new opportunity over the API I am getting a return stating that required fields are missing. These fields are correctly being ...
3
votes
1answer
214 views

ExactTarget REST API - Getting issues with /contacts/ and /campaigns/

I'm new with ExactTarget APIs, I'm using Php curl to request the ExactTarget REST API. Basically, I tried to create a contact: $array = array( 'contactKey' => 'test@test.fr', 'contactId' ...
1
vote
1answer
37 views

Trying to figure out how to update values in subscribers attributes using php fuel sdk

I have it so I can update the subscribers email and subscription status, function t_user_registration_messaging_profile_form_submit($form, &$form_state) { global $user; ...
0
votes
1answer
27 views

How to retreive all lead fields from salesforce?

Hi I am using salesforce Enterprise api to add leads in salesforce. $SFDCUSERNAME = "myusername"; $SFDCPASSWORD = "mypassword!"; $SFDCSECURITY_TOKEN = "mytoken"; $SFDCCLIENT = ...