Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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
-1 votes
0 answers
22 views

Lead Conversion via REST [duplicate]

I'm working on integrating with the Salesforce Lead Conversion API using PHP and cURL, but I'm encountering an error that says "The requested resource does not exist". Here's the relevant ...
Mohammad Fanni's user avatar
1 vote
1 answer
121 views

Web flow and access/refresh tokens via php

I'm trying to implement a web flow authentication process using php; so far, I've created the necessary index.php file which is used to get the first code: // Generate a random code verifier $...
Stratos Nikolaidis's user avatar
0 votes
0 answers
154 views

$Lightning.use() function with access token

Hello Community Experts, Whenever I use the access token into the $Lightning.use() function, It will give the Invalid session ID error and my component will not load on an external site. I have ...
Tushar Jadav's user avatar
  • 1,954
0 votes
1 answer
534 views

How To POST Request To PHP Endpoint And Process Values

I'm trying to send data from Salesforce to an endpoint hosted on an external server. The endpoint is written in PHP that will insert a new record into an external MySQL database. I've got the ...
joshholloway's user avatar
1 vote
1 answer
147 views

Installing workbench in an environment without composer - cannot find ../vendor/autoload.php

Error: Warning: require(/apache/htdocs/workbench/../vendor/autoload.php): Failed to open stream: No such file or directory in /apache/htdocs/workbench/shared.php on line 2 Fatal error: Uncaught Error:...
Eminent's user avatar
  • 11
0 votes
0 answers
98 views

Insert data to a multipicklist using PHP API Call

I am new to SalesForce. I am trying to create a new "Account" object in SalesForce using PHP API call. This works perfectly when I am not passing values to the multipicklist. When I pass ...
Dula's user avatar
  • 101
0 votes
1 answer
744 views

Performing a query via REST-API - Solve encoding problems

I am using Guzzle as my PHP HTTP client to perform api-calls. This worked great so far, for retrieving my access-token for example. However, now that I am trying to perform a query search I get a ...
Fewture's user avatar
1 vote
1 answer
830 views

Add Remote Site Setting via API

I am trying to add a new Remote Site Setting via API. I am using core PHP. After I run the following code I am getting this error. $response = [ 0 => { "errorCode": "NOT_FOUND&...
Adnan Ahmad's user avatar
0 votes
1 answer
1k views

Trouble getting VersionData from ContentVersion through REST API - always returns null

I am trying to retrieve the binary file data from a ContentVersion. As i understand it, you get this from making a GET request to the value that is stored in VersionData on ContentVersion. For me it ...
ryanpitts1's user avatar
0 votes
0 answers
54 views

salesforce toolkit php create duplicate records

I am using salesforce toolkit PHP to create an Opportunity. Everything works great but I random duplicate record creation which is driving me crazy. Does anyone know how to fix this problem? I can't ...
Simon Webb's user avatar
0 votes
2 answers
152 views

REST API Integration Error: Invalid conversion from runtime type List to Map\n\n(BMCServiceDesk)

I am creating an integration to open a Service Request in my salesforce instance (remedyforce application). I created the file below, I've had several errors and corrected it until I didn't give any ...
Barcat's user avatar
  • 27
1 vote
0 answers
76 views

Sub account not work API Soap PHP

I have a problem to point a subaccount in the PHP SOAP API, where can I make this note? My Code: include LOCAL_SYSTEM . 'application/src/Plugins/Exacttarget/exacttarget_soap_client.php'; include ...
Mauricio Diego's user avatar
1 vote
1 answer
291 views

Update field in salesforce - php sforce

I am trying to update a field in salesforce and for some reason it doesn't do anything. here is my code: class Salesforce { private static $mySforceConnection; private static $instance; ...
גיא פלד's user avatar
1 vote
0 answers
291 views

Access REST API with Connected-App and JWT Bearer Token Flow

I read this article and created php demo script. https://help.salesforce.com/articleView?id=sf.remoteaccess_oauth_jwt_flow.htm&type=5 Environment: Sandbox OAuth Scopes: api, refresh_token, ...
yutaaa's user avatar
  • 11
2 votes
1 answer
5k views

Salesforce REST API Connection is always Invalid Client Credentials

I'm using this to get a starting point token: session_start(); require '../config.inc.php'; $token_url = "https://test.salesforce.com/services/oauth2/token"; $params = [ "...
Kim K.'s user avatar
  • 41
1 vote
1 answer
367 views

Scheduling emails using Email Send Definition and Data Extension

We are currently building an integration where when a product is purchased on Shopify the user can select a date and time to schedule the product to be emailed to a specific email address (e-card ...
Adrian's user avatar
  • 23
1 vote
1 answer
283 views

Download Attachment using php is not working for xlsm files

I'm using the below php code to save the Attachment to my server. public function getAttachmentFileFromSalesForce($fileName, $fileBodyUrl) { try { $authCode=''; $...
Mûhámmàd Yäsår K's user avatar
0 votes
1 answer
148 views

Can I open page(NON-Visualforce) by POST method?

We want to open page(NON-Visualforce) by POST method. User open Visualforce page, and click 「submit」 button. This button call Apex class( or js? ) , other page open by POST method. Other page is ...
yuko-kisa9's user avatar
0 votes
1 answer
230 views

Increase max retrievable items from PHP

Good Day All, I am using a soapclient to access data from salesforce to php, and was able to retrieve data more than a thousand, however, php was only able to display 1000 but it did say that the ...
MENARDO LAGMAY's user avatar
0 votes
1 answer
421 views

How to add or remove subscriber from auto suppression list using php sdk [duplicate]

I don't see a method built in the existing php sdk to add or remove subscriber from the auto suppression list, can somebody please share the same if you have it developed
Ashish's user avatar
  • 1
1 vote
1 answer
493 views

Can I get a refresh_token using cURL from the command line, or in Salesforce.com itself?

I have a web server which uses Salesforce's REST API from PHP. It needs permanent access, to occasionally do things like create opportunities, accounts, and other objects. I don't want to store my ...
Jamin Grey's user avatar
0 votes
2 answers
117 views

Connect an apex trigger to an authorized user's account

I'm authorizing users through oAuth (Connected app) via a PHP app. I then want to enable an Apex trigger on every user's account; in short, I want to send all contacts to my app as they're added. I ...
jeffkolez's user avatar
  • 103
1 vote
1 answer
105 views

Required fields are missing: [TopicId]

I tried to insert data to salesforce but it returns Required fields are missing: [TopicId] Here is my code in inserting the data: $tObject = new Stdclass(); $tObject->EntityId = '...
sj_a's user avatar
  • 11
0 votes
1 answer
515 views

PHP OAuth 2.0 JWT Bearer Token Flow

I am trying to obtain a JWT Bearer Token from Salesforce. I am trying to follow their documentation but am however unsuccessful. https://help.salesforce.com/articleView?id=remoteaccess_oauth_jwt_flow....
Dan C's user avatar
  • 1
0 votes
1 answer
1k views

Retrieve Data Extension based on ObjectID using SOAP API

Using the Marketing Cloud API I'm trying to programmatically determine the fields in an event definition. So... I can start with the ID of the journey and get the journey definition with /...
Jeremy Roberts's user avatar
2 votes
1 answer
919 views

Calling Marketing Cloud APIs from PHP via FuelSDK

I am using PHP FuelSDK installed with composer. I followed this guide to create the clientid and clientsecret: http://www.calvinfroedge.com/salesforce-how-to-generate-api-credentials/ Here is my ...
BobbyDank's user avatar
0 votes
3 answers
2k views

Calling REST APIs from PHP with curl

I've successfully received an access token thru the API, but no matter what I do I keep getting this "INVALID_SESSION_ID". Does this mean the access key is invalid? I've tried lots of suggestions from ...
Mike Lacourse's user avatar
1 vote
1 answer
498 views

Trying to filter DataExtensions using a Client.ID but we get Filter Property 'Client.ID' is not a retrievable property

We have this little piece of code $getDERows = new ET_DataExtension_Row(); $getDERows->authStub = $this->soap_client; $getDERows->filter = array("Property" => "Client.ID", "...
Pentium10's user avatar
  • 111
0 votes
2 answers
1k views

Storing Responses from an HTML Survey in Cloud Pages [closed]

I am pretty new to marketing cloud and HTML, but I created an HTML form and am trying to host it on a landing page/cloudpage. My problem now is with collecting the responses from the survey. I was ...
Intern's user avatar
  • 149
0 votes
1 answer
1k views

How can I deploy a PHP app to heroku? It does not recognize my PHP environment

Trying to push my PHP code to Heroku always results in the following: remote: ! ERROR: Application not supported by this buildpack! remote: ! remote: ! The 'heroku/php' ...
Noah C.'s user avatar
1 vote
0 answers
82 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 ...
mario ruiz's user avatar
0 votes
1 answer
292 views

ComplexFilterPart Incorrect Syntax near the keyword 'AND' PHP API

I'm getting an error trying to pass a ComplexFilterPart. Everything appears to be correct. I did a var_dump and everything appears to be in order, but I cannot figure out why I'm getting this error. ...
Stan Alachniewicz's user avatar
0 votes
1 answer
653 views

Can't connect to MySQL on heroku

The connection to my ClearDb via WorkBench on my local computer or via PHP (on local comp too) works fine. But it doesn't works after deployment my PHP program on Heroku - if I run Deploy/View it ...
Andrey Noskov's user avatar
-1 votes
1 answer
344 views

delete single record in salesforce by php

I have to delete a single record based on id but I got error bad id 2 Array ( [0] => stdClass Object ( [errors] => Array ( [0] => stdClass Object ( [message] => bad id 2 [statusCode] => ...
vineet shirdhonkar's user avatar
0 votes
1 answer
228 views

Result of a soql parent to child soql request

I would want to know how I can display the result from a soql child to parent request? My request is: $query = "SELECT FirstName, LastName, (select Retreat_Booking__c.Retreat__c from ...
michel's user avatar
  • 1
1 vote
1 answer
2k views

What is relationship between Contact and Lead?

I was inserting contact in Salesforce, before inserting contact I usually check if that contact exists in Salesforce or not by the email, If I found the 0 records with this email in Salesforce then I ...
Baikare Sandeep's user avatar
0 votes
1 answer
207 views

How to set the isPrimary role of a contact attached to an order?

I'm not sure why I'm having so much trouble with this. But I've never worked with the Salesforce API and from my understanding, this should be working, but it is not. I have looked at ...
gabessdsp's user avatar
0 votes
1 answer
48 views

Can't see new fields from PHP

We're running a SOQL query in a PHP/Laravel app, using php-toolkit. The query works fine, but we can't see new fields that we've added to our SF Org. The fields show up if we do a "Salesforce::...
Alex S's user avatar
  • 1
0 votes
1 answer
231 views

Create a Case with SOAP in PHP - Failing to map across Contact ID

I have created a connection via SOAP with PHP and I am trying to create a new Case when the user submits the form. I have the SFDC Contact ID of the user and I am trying to insert the Contact Id into ...
proteuscanvas's user avatar
1 vote
2 answers
498 views

PHP worker dyno: can't access shell

I have deployed a PHP worker on heroku. I have disabled the web dyno because I don't need it. I can't access the shell of the worker dyno using heroku CLI (heroku ps:exec) (First screenshot below). If ...
Sourav Ghosh's user avatar
1 vote
1 answer
1k views

how do i tell heroku what version of php i am using? [closed]

I attempted to follow the help pages will no luck. this message appears to default to a version of php of its choosing then chastises me for picking an out of date version. I am using php version 7....
user9782218's user avatar
-1 votes
1 answer
66 views

Convert string into array

i am getting following string from POST. i want to convert this string in to array. please help me how i can do this? [{Product Id=3423654000000343061, Discount=0.00, Line Tax=Sales Tax===0:::0;;;, ...
uzman's user avatar
  • 21
2 votes
1 answer
423 views

How can I install GMagick on Heroku? [closed]

I get this error when trying to run my application: Heroku PHP Fatal error: Uncaught Error: Class 'Gmagick' not found in /app/lib.php How can I resolve this?
darker's user avatar
  • 21
0 votes
0 answers
31 views

How to check what TLS protocol FuelSDK-PHP is using? [duplicate]

I think the FuelSDK-PHP is using TLSv1, so the question is how to check it.. and how to get it to v1.2, if thats even possible? This is for PHP not for JAVA, as the other thread is.
Bidstrup's user avatar
  • 483
0 votes
1 answer
50 views

This is regarding Exact Target API terminology. I am currently trying to test TriggeredSend in php. I am currently learning and testing samples

Can anybody advise what is email ID (email->ID) here in below code ? I didn't understand what this is and why we require this ? Where do we find this value ? can we find these in marketing cloud admin....
eswar's user avatar
  • 1
0 votes
1 answer
99 views

Salesforce Leads: URL field

Issue: I have a URL field called CampaignLink__c which I pass a URL to, however, the url that is inserted is malformed. Desired Result: Inserting a URL to a custom field of the Lead object on ...
odedta's user avatar
  • 113
0 votes
1 answer
4k views

Expired authorization code

I'm trying to use the REST API with OAuth2 in PHP. The problem is that I followed this tutorial : http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php And when I try ...
Johann Carfantan's user avatar
0 votes
1 answer
151 views

Exported data to be updated in mysql database via FTP

I have a scenario where I need to update the mysql database from the data in csv file. The csv file is located in FTP server instance of Marketing cloud. $host = 'ftp.s10.exacttarget.com'; $username ...
Debu's user avatar
  • 9
0 votes
2 answers
476 views

wp remote post getting a 404 error code

$info = array( 'values' => array( 'email' => '[email protected]', 'firstname' => "firstname", 'lastname' => "lastname", 'source' => "WEB", ), ); $infoo=json_encode($info); $sf_auth = '...
Debu's user avatar
  • 9
0 votes
1 answer
677 views

PHP FuelSDK with Account: Unable to Auth

I am unable to get authenticated. I've copied/pasted the ID and secret. Error that I am receiving is below: Warning: First parameter must either be an object or the name of an existing class in C:\...
Debu's user avatar
  • 9

1
2 3 4 5
7