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
0answers
6 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
1answer
29 views

(400) - Bad Request when requesting auth token using Wordpress

We're using some house-built wordpress plugins to create emails in SFMC from wordpress content. The original plugin used the Fuel SDK, which from what I can tell, does not support remote sending, only ...
2
votes
0answers
46 views

invalid security token

Hi we were given an ExactTarget php application to port from an older Magento installation to a new Magento installation. This code is based on the ExactTargetSoapClient, soap-wsse.php and xmlseclibs....
0
votes
1answer
33 views

Where do I put DKIM?

This might sound like a stupid question... but I cannot find where can I put the DKIM in the exacttarget portal. If there is anyone that could help me solve this, please, let me know. If I find a ...
1
vote
1answer
21 views

Web-to- lead and get back ID in response

I am creating a web lead by doing a curl like so //set POST variables $url = 'https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8'; $fields = array( 'last_name'=...
0
votes
0answers
23 views

Submitting multiple web-to-lead forms from same multistep form

I have a client who has Salesforce Professional, so no API access. They want to capture data from each step of a four step form -- as a way of insuring against form abandonment. I have set up web-to-...
3
votes
2answers
122 views

Pushing data from salesforce org to PHP server

Is it possible to publish data from one salesforce to PHP apart from using outbound messages(as it cant send the attachments). I have a requirement where the website built on PHP has to be updated ...
4
votes
1answer
57 views

Can't create new contact via API

I am using the ExactTarget REST API. I am able to get my access token successfully via OAuth and can make some GET requests (i.e. https://www.exacttargetapis.com/contacts/v1/schema) that return the ...
0
votes
1answer
23 views

List all attributes of a subscriber list

I am working with the marketing cloud web service API and I am trying to locate a method that returns a list with all attributes of a subscriber list (like: FirstName, LastName, Gender, and so on) ...
0
votes
1answer
23 views

unsubscribe via Update Method and Subscriber Object

I am using the Exact Target SOAP API, on stack 7 (S7) I am trying to modify the status of a subscriber via the update method in order to unsubscribe a subscriber. I know that to unsubscribe you need ...
1
vote
0answers
66 views

SSL certificate problem: unable to get local issuer certificate, curl_errno 60

I'm trying to integrate PHP script with Salesforce by following the example on the link: http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php But I get the error ...
0
votes
0answers
34 views

How to set boolean value in Force.com Toolkit for PHP?

How can I set a checkbox value using the Salesforce PHP Toolkit? Here is what I've got: $records = array(); $records[0] = new SObject(); $records[0]->fields = array( 'Id' => '12345', '...
0
votes
0answers
27 views

How to setup WAMP to integrate PHP with salesforce REST API

I'm trying to integrate Salesforce REST API with PHP. i'M using WAMP server as my localhost. But whenever I tried to run the PHP script for Oauth authentication, I get error ERR_CONNECTION_REFUSED on ...
0
votes
0answers
23 views

how to prevent the resubmitting the form when reload the page using php

I am create the simple form insert the value for salesforce using php. I put validation for mobile no duplication. Once i fill the form and submit it show the success message.when i press F5 or reload ...
0
votes
0answers
7 views

How to Check mobile is exist in account page using php in salesforce

I create the form with mandatory field(Name,Mobile,city,Email,Gender).I create the form and insert the value into salesforce also. But i need to throw the error message if mobile no is exist in ...
0
votes
1answer
19 views

PHP Can't Update Picklist with Existing Value

I'm having a very strange problem with PHP (Laravel with Forrest) and updating values. I've got a pick list called Approved_Rejected__c with the following values: New Submitted Approved Rejected ...
1
vote
1answer
36 views

SOAP API username and password

This might seam like a stupid question but I have run out of options. Upon connecting to the SOAP API with SalesForce, I must provide a username and a password. I tried my credentials from the App ...
1
vote
1answer
48 views

Salesforce OAuth 2.0 JWT Bearer Token Flow with PHP

Anyone can help me with JWT Token Flow returning an error of {"error":"invalid_client","error_description":"invalid client credentials"} Why am I getting this error ? I suspect that I uploaded a ...
0
votes
1answer
25 views

how insert the record into account salesforce(sandbox) using php

I am creating the simple page with mandatory field. When i submit button it should insert into salesforce account directly. I refer the https://developer.salesforce.com/page/...
1
vote
0answers
17 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
43 views

Marketing API - get subscribers | unsubscribers | how to subscribe | unsubscribe

I am new to SalesForce and I am having trouble locating the part of the documentation that refers to subscribing/unsubscribing someone via the API. Could someone, Please, point me into the right ...
0
votes
0answers
12 views

Refresh the fields in salesforce

I have an external URL i.e. from Php. I just want to hit That url by sending(POST) 2 parameters from sales force and Then update the fields. I could achieve this by creating a button if I click on ...
1
vote
1answer
18 views

How to use the apexrest with C# [closed]

I developed a code to generate Accounts from the web in PHP but now I'm in front of a chlange to make it in C# for an emergency here is my PHP code, if you can help me how to do it ..... many thx &...
0
votes
0answers
22 views

MobileConnect: REST API Linebreak

I am attempting to trigger a MobileConnect message via REST API (and PHP) that includes a linebreak (uses \n). However, I haven't been able to successfully get the linebreak to generate. An example of ...
0
votes
0answers
16 views

Creating User Feeds with API using PHP

I need to create user feeds on Salesforce using API from a PHP web application I develop. The requirement is to post the form data as the feed on submit. I have tried Salesforce SOAP API and can ...
3
votes
2answers
128 views

session id or oath token, they not interchangeable?

Very new to Salesforce development. I used a connect app to get Oauth security token in a plugin. I am trying to call an Adobe Salesforce web service that needs a session ID. When I run my plugin I ...
0
votes
1answer
42 views

Apex equivalent of PHP sha1() and some more encoding methods

I got a PHP script to generate an encoded URL. I need to translate this script into Apex code to generate the same URL. However, the PHP encode functions seem to work differently from Apex. The ...
0
votes
0answers
40 views

Unable to validate app keys on php server

I'm getting this error when trying to authenticate ETclient a server. [Tue Mar 08 10:34:28.541573 2016] [proxy_fcgi:error] [pid 30750:tid 140334382126848] [client 10.20.30.224:62617] AH01071: Got ...
2
votes
1answer
37 views

Sync Salesforce data to my web app

Good day everyone. I am using php and mysql at the moment and I am trying to sync my salesforce data to my web application. The scenario is this: When I will create/update/delete data in salesforce, I ...
2
votes
1answer
30 views

Call <link rel=“stylesheet” href=“”> On A Specific Part Of My Page Without Overriding My Current CSS Style

I am trying to call <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> in the header.php that is linked to my post_form page for the jQuery file ...
0
votes
1answer
16 views

Where to pass “Partner code”? I am getting following error

Error: call to URL https://cs31.salesforce.com/services/apexrest/CreateLoan/ failed with status 200, response HTTP/1.1 200 OK Date: Tue, 01 Mar 2016 08:18:26 GMT Set-Cookie: BrowserId=...
1
vote
1answer
44 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
1answer
39 views

why i am getting this error when sending data through curl

Error: call to URL https://cs31.salesforce.com/services/apexrest/CreateLoan/ failed with status 400, response HTTP/1.1 400 Bad Request Date: Sat, 27 Feb 2016 09:22:27 GMT Set-Cookie: BrowserId=...
0
votes
0answers
29 views

Is this url I am using is correct?

I am using url like "https://test.salesforce.com/services/oauth2/token/" and trying to connect salesforce api through my third party website. But it is showing me error like following URL No ...
0
votes
1answer
90 views

Fatal error: Call to a member function __setSoapHeaders() when generating access token in php

When trying to generate a soap access token for salsforce I am getting an error: Fatal error: Call to a member function __setSoapHeaders() on a non-object in D:\XAMPP\htdocs\test24\soapclient\...
0
votes
1answer
53 views

Caught exception: Unable to validate App Keys(ClientID/ClientSecret) provided.: DateTime::__construct(): It is not safe to rely

I have installed Marketing Cloud (ExactTarget) PHP SDK, created my App and updated config.php with ClientId and SecretId but when I am running any sample or any other code I get this error "...
0
votes
0answers
30 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 ...
0
votes
3answers
125 views

Salesforce PHP API : INVALID_LOGIN

I am working with Salesforce PHP API(https://developer.salesforce.com/page/PHP_Toolkit_20.0_Samples) to retreive and update information. But do get the INVALID_LOGIN error when trying to execute if ...
0
votes
1answer
25 views

Issue modifying date on activated order due to work flow

I use the PHP Toolkit to backdate orders as they are processed in our project management system, but I am having an issue recently where orderitems are not being updated as expected. I disabled the ...
1
vote
1answer
167 views

The Triggered Send is not completely configured or in a new status

I am trying to create/retrieve a triggered send via the PHP FuelSDK. I am using the following code: public static function POST_test() { $tsName = 'tsWelcomeS1_t1'; $tsDescription = 'Welcome ...
3
votes
2answers
102 views

Salesforce REST API with PHP, INVALID_SESSION_ID after successful authentication

I connected my web app to salesforce and successfully followed all the steps in the web server OAuth flow to get an access_token and related info: https://developer.salesforce.com/docs/atlas.en-us....
1
vote
0answers
37 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 ...
0
votes
1answer
28 views

Error:Cannot use object of type QueryResult as array - PHP Tool Kit

1) I have an PHP Form that post all the gathered information(I.e when the user enters the details and clicks on submit )it will post to the to the Php file for processing Error: Cannot use object of ...
1
vote
1answer
63 views

Failure Attempting to update Opportunity

I am attempting to update an Opportunity using the SOAP API Enterprise Client. I am getting back various errors, so I don't think I am passing the correct or possibly required information. The 2nd to ...
0
votes
0answers
17 views

Unable to set subscriber status via the PHP API

I am trying the code on this page https://help.exacttarget.com/en/technical_library/web_service_guide/technical_articles/managing_subscriber_status_for_one_or_all_lists/ $subscriber = new ...
1
vote
1answer
23 views

Creating Case via PHPToolkit fails to activate email queue

I've successfully setup a case system that models the Web to Case system, because I couldn't use it specifically because it lacked in the feature department. So, I wrote a function that processes ...
0
votes
1answer
43 views

Problem getting AUTH Token

I'm trying to get an Auth Token (using PHP) and having trouble getting back the authorization code so I can make the next call and get the Auth Token. I set up a connected APP in the console and have ...
0
votes
1answer
20 views

how to send an email by setting the templateid using php tool kit --->Single email method

1) I am trying to send an email using PHP Tool kit when the records (Candidate) is created. I have read the documentation from here Send Single Email Message 2) I tried setting the settemplateId ...
0
votes
1answer
93 views

PHP tool Kit is not allowing to pass null values from the HTML form for (Date field)

1) I have an HTML Form that post all the gathered information(I.e when the user enters the details and clicks on submit )it will post to the to the Php file for processing 2) The problem is when i am ...
0
votes
0answers
62 views

What am I doing wrong with this Triggered Send API Call?

I am fairly new to ExactTarget and its API, but the API seems pretty straight forward, I am trying to do a Triggered Send (I think i have it set up properly) but I am getting an error from the return ...