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
8
votes
1answer
2k views

How to properly allow non-user/client login for external apps with the REST API?

So, I've been given the task of writing a web application for constructing and submitting quotes for my company. First off, I'm brand new to SalesForce, and I'm understanding it better and better ...
7
votes
1answer
497 views

Dynamic html mail process through single list

I want to sent a mail through single list every week.html mail and text mail both. It is possible to create one list like "12548" and add the different user like "abc@gmail.com","xys@yahoo.com", .... ...
2
votes
3answers
1k views

Fuel SDK + PHP + Sendable Data Extension

I cannot figure out how to make a Data Extension sendable using the PHP version of the Fuel SDK. The documentation describes both the SendableDataExtensionField and SendableSubscriberField as string ...
3
votes
2answers
4k views

GROUP BY custom field

I'm doing this query: SELECT ID, Name, Email_Domain__c FROM Contact GROUP BY Email_Domain__c And I'm getting this error MALFORMED_QUERY: GROUP BY Email_Domain__c ^ ERROR ...
3
votes
1answer
2k 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....
-1
votes
2answers
339 views

System.NullPointerException

while making a call from php i am getting the error Attempt to de-reference a null object Class.Demo.Insert: What is problem in my webservice? global class Ctest{ global class RequestClass{ ...
2
votes
1answer
8k views

Upload files to a Case in SalesForce via REST API

I'm working on uploading attachments from my website to Salesforce, attachments should be related to case object. I'm using REST API in PHP. So problem is that I get an error when I tried to upload ...
4
votes
2answers
7k views

What is the maximum number of records I can send per RESTful API call?

There is a maximum batch size for the number of records returned by an API call. Most of the documentation for the API calls reference including a .json file, and some, like the Update a Record page,...
3
votes
2answers
4k views

Sending data from PHP to Salesforce using CURL

I have to send the data from PHP to Salesforce and save the data in Salesforce. I have tried with the following code: $curlurl = "https://www.mysalesforce.com/services/apexrest/Contact?email={$...
1
vote
0answers
370 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 ...
0
votes
1answer
324 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::...
9
votes
2answers
3k views

Are workflows also triggered through the API?

Does anyone know if workflows are triggered by calls from the API? I have a workflow that is triggered by updating an opportunity. It then sends an outbound message to an external page that updates ...
2
votes
2answers
1k views

Create A Complex Filter Part using ExactTarget PHP API

I have created a function to handle a retrieve request using the ExactTarget API with PHP. The problem is that there's no documentation for using Complex Filter Parts in retrieve requests using the ...
2
votes
1answer
954 views

Populating Client ID for API Call reporting purposes

This is loosely in reference to another Question: Client Id blank in "API Calls Made Within Last 7 Days"-Report I'd like to find out, so that our Developers can implement it, where ...
2
votes
1answer
946 views

PHP API - Unable to query fields in custom objects

I'm trying to query for information using the PHP API (v20) and I am unable to query any custom object fields. The only one that appears to work is Id. It gives no error, in fact, the query itself ...
2
votes
1answer
2k 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'=...
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 ...
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
334 views

need help with exception failure when scheduling a send via SOAP API in PHP

I'm trying to create a scheduled send definition and I receive the following exception: [StatusMessage] => Exception occurred during [ScheduleEmailSendDefinition] ErrorID: 540318960 This is the code ...
2
votes
1answer
819 views

AMPscript Encrypt with PHP Decrypt?

I am trying to understand how AMPscript EncryptSymmetric or DecryptSymmetric might work with openssl or mcrypt in PHP. Essentially - is there a way to use AMPscript to encrypt, and PHP to decrypt? ...
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
64 views

Bounced emails with fuel sdk php

I'm trying to retrieve bounced mails with Fuel SDK PHP ET_BounceEvent object: require('ET_Client.php'); $myclient = new ET_Client(); $bounceevent = new ET_BounceEvent(); $bounceevent->authStub = $...
1
vote
1answer
258 views

Dynamic html mail process

I have sent the newsletter for 5375 user. But I am getting the below error Warning: DOMDocument::loadXML(): xmlSAX2Characters: huge text node: out of memory in Entity, line: 116199 in ET_Client.php ...
1
vote
2answers
625 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 ...
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 ...
0
votes
1answer
119 views

Accessing Data retrieved using Fuel SDK?

I'm creating a lightweight opt-out/profile center using the the Fuel SDK. My method is to use the email address a person inputs to retrieve the subscriber's ID. This ID will then be used to either ...
0
votes
2answers
129 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
468 views

API Calls - What Script/ Page/ Etc Made The Call?

Currently, our Web Development team is trying to mop up years of scattered coding techniques (PHP based sites), and in recent weeks, something disturbing has happened. Our API calls to Salesforce ...
0
votes
1answer
345 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
4answers
2k views

Fuel SDK PHP version: SOAP-ERROR: Parsing WSDL: Couldn't load from 'ExactTargetWSDL.xml

I'm trying to integrate the Fuel SDK for PHP. Here's my config.php: <?php return array( 'appsignature' => 'none', 'clientid' => 'CLIENT_ID_IN_APP_CENTER', 'clientsecret' =&...
-1
votes
1answer
168 views

(PHP) Fuel SDK + Updating subscriber status on (publication) list

I am trying to update a subscriber's status on a (publication) list, however, ET_Patch() doesn't appear to be affecting anything. If a subscriber is on the list with a status of Unsubscribed, I will ...