Questions tagged [php]

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

86 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
764 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 ...
3
votes
0answers
612 views

BULK Api - Invalid Session ID for Valid oAuth2 Token

Hi I am building Salesforce app which authenticate users using oAuth2. When user complete authentication I am receiving access_token. When I use this token with REST API it works perfectly fine. When ...
3
votes
3answers
724 views

How to parse the returned value of a query using a GROUP BY and Force.com-Toolkit-for-PHP

I'm selecting custom fields from an object and using GROUP BY to return those fields without repeating them. Something like this: SELECT Produto__r.Name, Produto__r.Id, ...
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
1answer
95 views

Fuel SDK - PHP (SOAP), Creating a folder results in “an unknown error”

I am using the php Fuel SDK to create new folders and populate them with images. /** * @return mixed */ function createFolder() { $client = getAuth(); // Create Folder $postFolder = new ...
2
votes
0answers
956 views

Salesforce SSO and SimpleSAMLphp - Assertion OK, Login failed

I am trying to setup SSO between a LAMP website and SalesForce by using SimpleSAMLphp v.1.13.2. I have followed this tutorial: https://salesforce-developer.net/salesforce-sso-with-simplesamlphp SAML ...
2
votes
1answer
89 views

Retrieving the stopped/started status of a program via API in Exact Target?

We have a few Programs that we need to check to see if they are started/stopped. Is there a way to check these statuses via API? My first attempt was using the AsyncActivityStatus object, but it ...
2
votes
0answers
118 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 = ...
2
votes
1answer
675 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 company-...
2
votes
1answer
123 views

ExactTarget PHP Fuel Update QueryDefinition

I am trying to create some sugar methods for Query's since for some reason they are missing form the Fuel SDK. I have create, retrieve, execute & delete but I cannot figure out how to do the ...
2
votes
0answers
119 views

PHP Code Example for Adding Steps, Activities to an Existing Automation?

I'm hoping that someone might be able to share a PHP example for updating an existing automation with an additional Step and an activity associated with that step. The single example (in .Net) for ...
2
votes
1answer
538 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 ...
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 ...
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. ...
2
votes
0answers
141 views

Obtaining users data after accepting / allowing a Chatter Application

I'm slowly on the road to completing my PHP application, the final piece to my knowledge is figuring out how, after a user accepts the use of an Application (I think I'm using a remote app atm), to ...
1
vote
0answers
52 views

Synchronize local folder with remote folder Content Builder

I used to do a sync operation among local and remote folders in Content Classic using a php library. However now in Content Builder not sure if there's any library ( not plain API calls) that can keep ...
1
vote
1answer
213 views

Adding 1000 subscribers to a list

I am trying to create and add multiple subscribers to a list all at the same time through the Marketing Cloud API. Currently I am able to add them individually, which works but it takes roughly 10 ...
1
vote
0answers
75 views

How do I perform an automation immediately by PHP?

I found that can perform an automation immediately on Marketing Cloud via soap API. (see: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/...
1
vote
0answers
142 views

PHP Toolkit to SF API, Why am I getting a 402 error with “Unable to determine from which page the request originated”?

I am attempting to build a set of tools in PHP designed to "smoke text" various data transmissions to and from our Salesforce org, using PHP Toolkit 20.0. Here is my PHP: require_once('soapclient/...
1
vote
1answer
290 views

Need Help debugging - Exception occurred during [ScheduleEmailSendDefinition]

I have the following code, which I found and updated. Initially I tried the code example from http://help.marketingcloud.com/en/technical_library/web_service_guide/technical_articles/...
1
vote
0answers
91 views

Creating a record using SforceEnterpriseClient with reference

Using SforceEnterpriseClient, I'm having difficulty creating a new record of a custom type that has a reference to a record of another type (incidentally it is custom as well). System_User__c is a ...
1
vote
0answers
53 views

Retrieve List of TriggeredSends with PHP

I have used this code before to retrieve a list of all data extensions using the SOAP API $client = $this->_initSfApi(); $request = new ExactTarget_RetrieveRequest(); $...
1
vote
0answers
361 views

Accessing apex webservice/SOAP method from PHP

I am trying to call a SF method from a remote PHP script. I am using github.com/developerforce/Force.com-Toolkit-for-PHP. Method has been set as a webservice : global class groupCamp { ...
1
vote
0answers
81 views

Sending SMS with Fuel-sdk PHP

I'm trying to send a SMS to a single number using the PHP sdk I've had a look at this https://code.exacttarget.com/apis-sdks/soap-api/sms-api-scenario-guide.html but cant find a PHP SDK. anyone ...
1
vote
1answer
61 views

Access to Category ID denied

I'm getting an error when trying to /update/ create a template using fuel php sdk. $contentarea = new ET_ContentArea(); $contentarea->authStub = $etClient; $contentarea->props = array("...
1
vote
0answers
130 views

Populate custom group lookup field using PHP

I am new to Salesforce (but experienced php developer). My trouble is with populating a custom group lookup field via php. The salesforce dashboard was setup by someone else; and I'm learning my way ...
1
vote
0answers
98 views

List all available job positions using the API

I am very new to Salesforce tools and its inner workings. I was asked to recreate our company's Carrers page, that right now is a SF Site loaded inside an iframe on our website. The idea is to ...
1
vote
0answers
580 views

Call Salesforce Apex Rest Post Method using PHP

The aim of this code is to call post method apex rest using php curl. But I am getting an error of response [{"message":"Unexpected parameter encountered during deserialization: Last Name at [line:1, ...
1
vote
2answers
624 views

Upload image to Exact Target Portfolio using SOAP API (PHP)

I'm trying to upload an image from my computer to my Portfolio in ET using PHP. I'm having some trouble because I'm not sure how to set the URN and Source properly and I'm not finding any clues on the ...
1
vote
1answer
31 views

Trouble querying a certain value from Salesforce PHP API

so I have a script on a page on my website that connects to my SF, queries for a certain value, and returns the value. It looks like it should work, but I'm not seeing anything. $user is set, and the ...
1
vote
0answers
111 views

Getting error while integrating php with salesforce

I have integrated my PHP application with salesforce. I cant retrieve any data from salesforce . I am getting this following error . org_config.php <?php define("USERNAME", "xxxx@yyyy.com");...
1
vote
2answers
193 views

SOQL Select Statement within Select Statement in PHP

I have the following query: SELECT Name, Media_RO_Status__c, (SELECT OldValue, NewValue, CreatedById, CreatedDate FROM histories) FROM Registration_Object__c The response I get in php is: SObject ...
1
vote
1answer
83 views

PHP toolkit wrong character count for returned values of subquery

I'm relatively new to Salesforce and the Salesforce API and came across something that seemed odd, your help would be appreciated. I'm using the following query with the PHP API: $query="Select ...
1
vote
1answer
84 views

How to integrate Login with Salesforce

I have registered a Developers Edition. When try to connect to their API it returned me an error saying "API_DISABLE_ORG" something like that. They said that i have to contact Salesforce for this. I ...
1
vote
0answers
42 views

DOMDocument::createElementNS():

I am getting this error DOMDocument::createElementNS(): unterminated entity reference aV5W when I try to perform the SOAP call to get the VersionInfo. I am suspecting that I have a "&"...
1
vote
1answer
358 views

How to associate a lead with a campaign by php salesforce api

I can create lead via salesforce php api toolkit , by my client said every lead should be associated with a campaign , and he gave me a campaign id . The campaign id is similar to something like this "...
1
vote
1answer
264 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 ...
1
vote
0answers
347 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
432 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 Password"...
1
vote
0answers
131 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 ...
1
vote
1answer
71 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 ...
1
vote
0answers
379 views

PHP Toolkit: Query to fetch RecordTypeID along with Custom Object

I've a custom object for which I want the RecordTypeIDs returned along with a simple SELECT query. Example: $q1 = "SELECT Id, Name, RecordTypeID FROM Custom_Object__c"; Obviously this doesn't ...
1
vote
0answers
573 views

Is this an acceptable method to send SOAP API envelope using PHP?

I'm trying to post a SOAP envelope to the ExactTarget API using this PHP: http_post_data('https://webservice.s6.exacttarget.com/Service.asmx',$xml); (where variable $xml is the SOAP envelope) I'm ...
1
vote
2answers
1k views

[exacttarget]Creating Folders and Emails error: ParentFolder.ID or CategoryID not found

Were using Fuel API [FuelSDK-PHP-v0.9], against ExactTarget Enterprise 2 We have several levels of folders within folders to organize our emails created in the exacttarget website, we are trying to ...
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
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 ...
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 ...
0
votes
0answers
10 views

Unplanned Outage Error while trying to make SOAP calls for adding data to Data Extensions using PHP SDK

I am trying to push some 3rd. Party Data to Data Extension using PHP SDK. I have taken the Starter kit from here: http://help.marketingcloud.com/globalassets/documentation/apistarterkits/php-...
0
votes
0answers
12 views

Fuel PHP SDK Retrieve FilterDefinition Error: Partner Properties are not allowed in this context

I am trying to retrieve FilterDefinitions from our account. The Fuel SDK doesn't have this object by default, so I created my own class that looks like this: // spl_autoload_register( function($...