Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
0
votes
1answer
15 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 /...
0
votes
0answers
12 views

UPDATE RECORDS USING REST api AND PHP

Greetings of the day! I am working on PHP and Salesforce integration and I want to update records using PHP data table. Now I want to update records in salesforce when clicking on the checkbox. And ...
0
votes
0answers
19 views

Salesforce and PHP Integration using PHP Toolkit

I am trying to integrate Salesforce with PHP and want to show contacts on to PHP page in a table, I am using the PHP toolkit and also taking reference with the Salesforce developer forum to call ...
0
votes
1answer
25 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 ...
0
votes
1answer
36 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 ...
1
vote
1answer
45 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", "...
0
votes
0answers
21 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
2answers
67 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 ...
0
votes
1answer
117 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' ...
0
votes
0answers
17 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($...
0
votes
0answers
108 views

{“message”:“Session expired or invalid”,“errorCode”:“INVALID_SESSION_ID”}

Help! We are getting this error with our connected app. {"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"} What could be causing this? We are using sandbox. The Instance URL ...
0
votes
0answers
248 views

Policy Falsified Faultcode

Can any body please tell me what is faultstring Policy Falsified and why it occurs on sending a soap API request as i am using php saml sso and a soap API is being used !
1
vote
0answers
54 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 ...
0
votes
1answer
86 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. ...
0
votes
1answer
208 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 ...
-1
votes
1answer
104 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] => ...
0
votes
1answer
58 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 ...
1
vote
1answer
90 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 ...
0
votes
1answer
68 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 ...
0
votes
1answer
27 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::...
0
votes
1answer
83 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 ...
1
vote
2answers
213 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 ...
1
vote
1answer
209 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....
-1
votes
1answer
52 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;;;, ...
2
votes
1answer
157 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?
0
votes
0answers
26 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.
0
votes
1answer
38 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....
0
votes
1answer
37 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 ...
0
votes
1answer
711 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 ...
0
votes
1answer
62 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 ...
0
votes
2answers
203 views

wp remote post getting a 404 error code

$info = array( 'values' => array( 'email' => 'email@email.com', 'firstname' => "firstname", 'lastname' => "lastname", 'source' => "WEB", ), ); $infoo=json_encode($info); $sf_auth = '...
0
votes
1answer
270 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:\...
0
votes
1answer
30 views

Retrieving the password of a user with php api

I am preparing a form on an external page using PHP. Is there a way to check the password entered in that form with the one in Marketing cloud? I used "AccountUser" object to get the password but it ...
0
votes
1answer
209 views

Creating an email building application in CloudPages, can it be done?

This question will probably get shut down for being too broad... At my last company, I built a standalone browser based application that allowed my to drag and drop to build emails. (this was before ...
0
votes
1answer
367 views

Create and Perform a query with PHP SOAP API in ExactTarget

I have a code snippet that I try to create a query and perform it. I am able to create the query but it does not perform the query. Instead, it gives that error: Exception occurred during [Schedule::...
0
votes
1answer
75 views

API_DISABLED_FOR_ORG - Workaround for simple read only requests

We use the "Group Edition" and get "API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner" using SOAP. We are trying to search if a user exist as a contact in Salesforce based on ...
0
votes
1answer
398 views

Add field to sobject using REST api

I have a salesforce app, and I'd like to use it to add fields to the Lead object in salesforce. This can be achieved in Salesforce by going to Setup > Object Manager > Lead > ...
0
votes
2answers
64 views

Try to call add contact salesforce API. it's show session expired error

I integrated salesforce one of my project for store user contact in Salesforce. first, i was authenticate using below API link: https://login.salesforce.com/services/oauth2/authorize?response_type=...
1
vote
1answer
116 views

Updating a Query Activity

Im currently trying to use the Salesforce SOAP API to update a query activity but it seems to fail when trying to update. It works fine creating a Query Activity though. The error message isn't very ...
1
vote
1answer
31 views

How to get Product Information of an Account?

In an account view there is information related to account. I need to get name, phone number, billing address of the account. My query for getting name, phone number and billing address is "SELECT ...
0
votes
1answer
386 views

How to get prospects based on custom field in Pardot?

We have 2 millions prospects in our Pardot account and we want to get some of the prospects. How to get those prospects based on custom field? We use Pardot API version 4 in our code base, but there'...
0
votes
1answer
420 views

How to get more than 2000 records from custom object? [duplicate]

Problem I'm trying to make a standard query to get all records from salesforce custom object. I'm using SOAP API. I have more than 40k records in object. But salesforce OFFSET limit 2000 record. ...
1
vote
1answer
198 views

Is it possible to create a complex filter with php FUEL SDK?

I currently using in my project: https://github.com/salesforce-marketingcloud/FuelSDK-PHP I don't find any documentation on how to perform a get with a complex filter: $myClient = new ...
0
votes
2answers
918 views

Fields missing from API request

I'm doing API requests via the PHP library (https://github.com/phpforce/soap-client), and I'm using the enterprise WSDL. Everything is working fine, but with one exception - some of the fields are ...
1
vote
0answers
34 views

Registraion does not work after reset security token [closed]

After trying to register I receive 500 error. There is a site (I do not know whether it is possible to insert links to other sites), I was allowed to modify it. Until Sunday, everything was ready and ...
1
vote
2answers
272 views

Return a tns:QueryResult

As someone new to salesforce I have been struggling. I have this in my WSDL. <element name="Device_Paths__r" nillable="true" minOccurs="0" type="tns:QueryResult"/> in my <complexType name="...
0
votes
0answers
24 views

Creating Web-to-Lead for more than two salesforce instance

I want to use one web-to-lead form to send data to my two salesforce instances at once. Meaning I need to use two URLs for POST action and two "oid" in the form. Is it possible and if it how can I ...
0
votes
1answer
31 views

Populate Primary Point of Contact Field ( Business Account ) from Contact Object

I am using PHP cURL to populate data in the Customer, and the Account Object. I am working to link the two objects together via Contact Role. In which object field do I need to assign a value to in ...
0
votes
2answers
136 views

How to create a business account with the REST API

I can create a person account using the REST API, but I can't seem to find any documentation on how to create a business account. I imaging that the post items you send need to include something extra ...
0
votes
1answer
3k views

Authorization PHP Curl returns Login page instead of token

I am trying to use PHP curl to authenticate my app's user, but instead of authenticating with OAuth it returns the actual html login form as a response. Why? I don't want to redirect the user over and ...