Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

1
vote
1answer
31 views

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

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
28 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
64 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
17 views

Salesforce Workbench install issue on apache server

I have got Workbench installed onto a linux vm with Apache but when I try to access the site, I get an error. PHP Fatal error: require(): Failed opening required '/var/www/html/workbench/../vendor/...
0
votes
0answers
16 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
35 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
0answers
18 views

Language has to be specified in HTTP header

Salesforce endpoint accessed thru AJAX: $.ajax({ type: 'GET', url : 'https://ap5.salesforce.com/services/data/v42.0/support/knowledgeArticles', headers : { 'Authorization' : 'Bearer '+ '...
0
votes
1answer
26 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
239 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
44 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
104 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
0answers
73 views

Token is not passing in the curl post php

$sf_auth = 'Bearer ' . $accessToken; $chh = curl_init('https://www.exacttargetapis.com/hub/v1/dataevents/key:Web_Registrations/rowset'); curl_setopt($chh, CURLOPT_CUSTOMREQUEST, "POST"); ...
0
votes
1answer
69 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
0answers
87 views

How to Enable API (API_DISABLED_FOR_ORG)?

Im trying to integrate my php application with salesforce using the rest api via auth2. The queries im making on the account : $access_token = $_SESSION['access_token']; $query = "SELECT Account....
0
votes
0answers
45 views

Is there any faster method to update data in Marketing Cloud data extension sent from external form rather than using The Marketing Cloud SDKs?

I am posting form data to data extension in MC from the external site through the AJAX call and Marketing Cloud PHP SDK. The form consists of 4 fields only. Before sending the data the subscriber is ...
0
votes
0answers
14 views

Redirecting to the previous page in Marketing Cloud using Oauth with php

I created an external login page using Oauth. The user logins successfully but he/she does not redirect back, just stay on the "successful login" page in Marketing Cloud. The URL I used: https://...
0
votes
1answer
25 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
0answers
11 views

IsNillable problem with php api

I am trying to create a data extension with a nullable field using PHP. Yet, the field created still seems nullable. My code is below, thanks. $lnamefield = new ExactTarget_DataExtensionField(); $...
0
votes
1answer
79 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
0answers
16 views

Creating asset folder under a specific folder with SOAP & PHP

I am trying to create a new folder under a specific asset folder. It gives me that error: An unknown error occurred while processing. Error ID: 1090750062 Th problematic line from my understanding ...
0
votes
1answer
140 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
39 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
0answers
107 views

Interact with the Force.com REST API from PHP

I am trying to handle the tutorial below: http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php It gives the below error: "error=invalid_client_id&...
0
votes
1answer
94 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
0answers
36 views

SalesForce Rest API - Validating Account Credentials

I am in the process of migrating a sales force app that uses validateAccountCredentials element to validate user credentials. The element: <xsd:element name="validateAccountCredentials"> <...
0
votes
2answers
52 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
57 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
29 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
195 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
125 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. ...
0
votes
0answers
181 views

Has Anybody Successfully Connected a Laravel 5 App to SalesForce via OAuth2

For the last month, I've been trying in vain to use the Lusitanian OAuth library to connect a Laravel 5 PHP application to SalesForce via OAuth2. After resolving numerous issues arising from my ...
1
vote
1answer
77 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
301 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
115 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
22 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
0answers
253 views

Id not specified in an update call, MISSING_ARGUMENT

After completing the form I have such an error in the response: {"success":false,"data":[{"code":"salesforce_update_data_error","message":[{"errors":[{"message":"Id not specified in an update call","...
0
votes
1answer
23 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
91 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
906 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 ...
0
votes
2answers
2k views

salesforce rest api invalid session id error when using access token

I am trying to retrieve data from salesforce using the REST api and CURL in PHP. I perform the authentication request and receive an 'instance_url' and 'access_token' but after performing a query ...
1
vote
1answer
155 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
votes
1answer
142 views

REST API - PHP - Salesforce- Update Account owner byName

The following code updates the account name and the billingcity, is there a way to update the account owner function update_account($id, $revenue, $instance_url, $access_token) { $url = "$...
0
votes
1answer
74 views

PHP: Obtain the form “layout” of a custom object via API?

Edit: I may have answered my own question yay! I've just seen DescribeLayout and about to hit that endpoint to see what I get. I am currently using the PHP describeSObject() method to get a list of ...
1
vote
1answer
147 views

How to input data into a lookup field through php

I have a Cakephp3 project, and in one of the controllers I'm making an array of things to pass to Salesforce. They all work fine except for this field "Account" in the Opportunities ("Opportunity") ...
1
vote
1answer
210 views

PHP Soap API - Create Custom Object Record - No fields provided in an external foreign key reference in entity

Relatively new to working with the Salesforce API. Trying to create a new record for a custom object we have created in Salesforce. Below is the code I am using to create this custom object, I am ...
0
votes
0answers
64 views

Unable to query the `Name` property using SOAP

I'm trying to call the Salesforce API using SOAP and PHP. I was able to successfully login and retrieve the data. But when i query for the Name property I'm unable retrieve it. I am using Windows ...
0
votes
1answer
82 views

How do I confirm automation perform status — running or not?

I want to confirm automation perform status. How do I confirm this by PHP via SOAP-API? PHP sample code is here. require('../ET_Client.php'); const OBJ_TYPE = "Automation"; const ...
0
votes
2answers
122 views

I could not perform an Automation immediately by PHP via SOAP

I created this PHP code and run this. PHP Code const OBJ_TYPE = "Automation"; const ACTION_TYPE = "start"; const OBJECT_ID = "[Automation's External Key]"; try { $authStub = new ...
1
vote
0answers
65 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/...