Questions tagged [php]
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language.
29
questions
8
votes
1
answer
3k
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
1
answer
588
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 "[email protected]","[email protected]", ....
...
3
votes
1
answer
4k
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....
3
votes
2
answers
6k
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 ...
2
votes
3
answers
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 ...
2
votes
2
answers
2k
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 ...
-1
votes
2
answers
400
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{
...
9
votes
2
answers
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 ...
4
votes
3
answers
18k
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
1
answer
1k
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 ...
3
votes
2
answers
6k
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={$...
3
votes
1
answer
18k
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 ...
2
votes
0
answers
161
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
1
answer
1k
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
1
answer
787
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
1
answer
2k
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? ...
2
votes
1
answer
403
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
1
answer
3k
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'=...
1
vote
1
answer
294
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
0
answers
425
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 ...
1
vote
1
answer
79
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
0
answers
83
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
1
answer
556
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
1
answer
927
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
1
answer
841
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
1
answer
7k
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
2
answers
549
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
1
answer
160
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 ...
-1
votes
1
answer
238
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 ...