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
vote
1answer
403 views

What is the Fuel SDK Best Practice for updating a subscriber's information?

I am trying to understand how the patch() function works in the new Fuel SDK. To update a subscriber's status: require('ET_Client.php'); $myclient = new ET_Client(); $subscriber = new ET_Subscriber();...
1
vote
1answer
254 views

Creating a case with PHP Toolkit 20.0 fails

I'm trying to create a case with PHP Toolkit 20.0 (Enterprise) and I can't get it to work. PHP: $sObject = new stdclass(); $sObject->ZCN_number__c = $_SESSION['zcn']; $sObject->ContactId = $...
1
vote
1answer
71 views

Is it possible to integrate RSForm Pro with the Exacttarget API?

I've done quite a bit of research on Google about this but there doesn't seem to be much information on this subject. Is it possible to integrate RSForm Pro with the Exacttarget API? If so, where does ...
0
votes
1answer
390 views

ExactTarget Enterprise PHP/API How do I select the Enterprise Unit ID

We have used the PHP code to do Trigger Send Definition with the Standard edition for the past 2 years now, and work very well. Now we are moving to the Entreprise edition and I was told by ET ...
1
vote
2answers
378 views

Add records to an objece in Salesforce with PHP

I am trying to create a record in Salesforce Enterprise but I get an error message. The code: <?php define("SOAP_CLIENT_BASEDIR", "soapclient"); require_once (SOAP_CLIENT_BASEDIR.'/...
2
votes
1answer
700 views

Can I Upload Documents from PHP Toolkit?

I want to upload files into the document library. Is it possible to do this with the PHP Toolkit?
0
votes
1answer
858 views

Is there a way to change the profile center URL?

In an email, if I want to redirect to a custom unsubscribe page, is there a way to change the value of the %%profile_center_url%% so that it goes to a new page instead of the default?
1
vote
1answer
316 views

What is the difference between the ET_Client class in the API an the ExacttargetSoapClient?

Both seem to have the ability to do unsubscribes, adds, retrieves, deletes... pretty much anything I can think of. But the ExacttargetSoapClient class requires a username and password whereas the ...
2
votes
1answer
741 views

How do you unsubscribe a subscriber from just one list

I'm new to Salesforce development and specifically Exacttarget development. I need to write a custom opt-out page (that can be branded). So when a user clicks "Unsubscribe" they are taken to a company-...
4
votes
2answers
771 views

Adding new values to Custom Picklist (PHP Toolkit)

I'm using the PHP Toolkit for integrating a web application with my Salesforce account. I have this custom object: Individual__Choice__c that contains this custom Picklist: Primary_Option__c This ...
2
votes
2answers
8k views

Date format with Salesforce REST API

I'm retrieving the "LastModifiedDate" attribute of a File through a GET request with the Salesforce REST API but I just can't figure out the date format. Salesforce's documentation states the date ...
2
votes
1answer
193 views

How to create a managed application and namespace for REST API

I am following up the post here: REST API without Connected App Although the answer was very helpful, I'm new to SF and need some clarity on some things: 1. How and why can a separate (free ...
1
vote
2answers
229 views

Is Salesforce PHP Api supports TLS by default

Does the Salesforce PHP API supports TLS by default?, if yes how can i check it/prove it I googled about this, I get the related information but it's not exact.
3
votes
1answer
439 views

API PHP Partner WSDL REQUIRED_FIELDS_MISSING

I am having an issue with the Partner WSDL. When attempting to create a new opportunity over the API I am getting a return stating that required fields are missing. These fields are correctly being ...
3
votes
1answer
1k views

ExactTarget REST API - Getting issues with /contacts/ and /campaigns/

I'm new with ExactTarget APIs, I'm using Php curl to request the ExactTarget REST API. Basically, I tried to create a contact: $array = array( 'contactKey' => 'test@test.fr', 'contactId' ...
1
vote
1answer
113 views

Trying to figure out how to update values in subscribers attributes using php fuel sdk

I have it so I can update the subscribers email and subscription status, function t_user_registration_messaging_profile_form_submit($form, &$form_state) { global $user; require('FuelSDK-PHP-...
0
votes
1answer
188 views

How to retreive all lead fields from salesforce?

Hi I am using salesforce Enterprise api to add leads in salesforce. $SFDCUSERNAME = "myusername"; $SFDCPASSWORD = "mypassword!"; $SFDCSECURITY_TOKEN = "mytoken"; $SFDCCLIENT = "...
3
votes
1answer
726 views

Trying to set up Fuel API on Drupal and getting Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'ExactTargetWSDL.xml'

I am trying to get the Fuel API working on a drupal module that I made, I am using Drupal 7 and I downloaded the FuelSDK-PHP-Dot9 to my module that I want to use it on. I followed the configuration ...
1
vote
2answers
453 views

How to make a order in salesforce using php

I'm tried to insert or create new order like product and shipping details in salesforce,but i got get the exact table name for create order please help me name of the table i need to use and what ...
1
vote
0answers
388 views

PHP Toolkit: Query to fetch RecordTypeID along with Custom Object

I've a custom object for which I want the RecordTypeIDs returned along with a simple SELECT query. Example: $q1 = "SELECT Id, Name, RecordTypeID FROM Custom_Object__c"; Obviously this doesn't ...
1
vote
1answer
977 views

Appropriate way to send individual Welcome Emails via the API?

Currently, I have a Welcome Email solution (PHP) that works via the ExactTarget API. However, it's a little messy and is causing issues within the ET user interface. Basically, upon registering for ...
3
votes
2answers
28k views

How to request rest api after getting access token. php & curl

I am able to authenticate with salesforce and receive a token using php & curl, below. However my next step is to use the token id to query salesforce (e.g objects) and i am not getting anything ...
2
votes
1answer
672 views

PHP API Triggered Send

I am trying to create a triggered send using the API with PHP. The soap call is registering, however, i don't believe the function is registering correctly. I have a Triggered Send Definition ...
1
vote
1answer
60 views

Multi Value Results from Nested Query

I have a parent-child nested query like to this: SELECT Name,CloseDate,Theatre,(Select Product__c from Opportunity.OpportunityLineItems) from Opportunity where Name = 'Foo' The result of which, ...
0
votes
1answer
579 views

Updating existing subscribers

There are two Exact Target examples that I would like to implement in a landing page together. The first examples involves the Web Collect demo found here: help.exacttarget.com/Global/...
1
vote
1answer
583 views

How to retrieve result for nested query

I am trying to retrieve the records from a query that includes a nested query. I am able to retrieve all of the results from all other parts of the query, just not the one from the nested query. The ...
1
vote
1answer
3k views

Issue passing UTF-8 encoded data to data extension

I'm having issues sending UTF-8 data correctly to a data extension. When I try to send values such as ジョシュ, it ends up being saved as ã¦ã©ã¼ã©ã¼ ã¸ã§ã·ã¥. I tried to convert the encoding before ...
4
votes
3answers
9k 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,...
6
votes
1answer
478 views

Force.com Toolkit for PHP - Still Officially Supported?

Looking at the current websites here: https://developer.salesforce.com/page/PHP_Toolkit https://github.com/developerforce/Force.com-Toolkit-for-PHP I wonder if the toolkit is still supported? Seems ...
2
votes
1answer
128 views

ExactTarget PHP Fuel Update QueryDefinition

I am trying to create some sugar methods for Query's since for some reason they are missing form the Fuel SDK. I have create, retrieve, execute & delete but I cannot figure out how to do the ...
2
votes
1answer
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
1answer
291 views

how to change email list status for email address with REST API

i am running into an issue with the REST API. I am able to subscribe a user to any list when they are new to the system using ->post(), but when a user is already in our system and unsubscribed from a ...
1
vote
0answers
626 views

Is this an acceptable method to send SOAP API envelope using PHP?

I'm trying to post a SOAP envelope to the ExactTarget API using this PHP: http_post_data('https://webservice.s6.exacttarget.com/Service.asmx',$xml); (where variable $xml is the SOAP envelope) I'm ...
2
votes
1answer
548 views

Salesforce Open Popup via Trigger

I am creating lead using Force.com Toolkit for PHP. I have also created trigger when any lead is created. using this trigger I wants to open one popup or model in salesforce screen. is it possible ?
3
votes
2answers
5k 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={$...
4
votes
2answers
2k views

Decrypt a string encrypted by the EncryptSymmetric() AMPscript function using PHP

I read elsewhere in StackExchange that it's not possible to decrypt AES strings originating from AMPScript in PHP. Is this true? It seems that it should be possible with mcrypt. Also, part two for ...
2
votes
2answers
3k views

Trigger Welcome Email after adding new subscriber via API?

I have a web form that adds subscribers to a list via the API but because i'm using the API rather than web collect it won't send out the welcome email. How would I send send the welcome email via api?...
2
votes
1answer
1k views

Web Collect - Display message if already subscriber

I'm developing a page on my site for vistor's to subscribe to a newsletter and I want to return a message if they are already subscribed. It's a standard html form like the example on http://help....
2
votes
2answers
789 views

Salesforce rest query “join”

So I would like to know if a domain is in three or more tables Normally I would do something like this to get one row SELECT c.Email, a.Website, l.Email as leadEmail FROM Contact as c ...
1
vote
2answers
1k views

[exacttarget]Creating Folders and Emails error: ParentFolder.ID or CategoryID not found

Were using Fuel API [FuelSDK-PHP-v0.9], against ExactTarget Enterprise 2 We have several levels of folders within folders to organize our emails created in the exacttarget website, we are trying to ...
0
votes
1answer
123 views

Update value in Object through API

I'm using PHP and SOAP OR REST to access the data from my Salesforce Account. I want to know if there's a way for me to do a query or something like it to update or insert some records? I haven't been ...
3
votes
2answers
5k 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

Get more than 2000 with SOAP and PHP

I'm trying to return more than 2000 records, I haven't seen any answers for people using PHP and SOAP. Any recommendations? My query is simply: SELECT ID, Name FROM Contact Thanks!...
0
votes
2answers
812 views

Update Attributes for Subscriber on Multiple Lists Under Multiple Client IDs

I'm getting the devil trying to update subscriber attributes in multiple lists where the list is part of a subaccount. I don't know the proper terminology for this, but our account has several ...
0
votes
1answer
335 views

Unable to display results into a php table

I tried the force.com php toolkit to pull results from salesforce into php. Following is my code... $query = "SELECT Id, Name, Phone from Contact"; $response = $mySforceConnection->query($query); ...
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 ...
2
votes
1answer
159 views

Create a TriggeredSend Definition Fatal error: Call to undefined method WSSESoap::addOAuth() in /ET_Client.php on line 165

I'm trying to set of a TriggeredSend definition. After a lot of playing around I got the system to load the ExactTargetWSDL.xml. Now I've got this error showing up, and i'm not sure why. Create a ...
1
vote
1answer
384 views

How Can I Create an HTML Page with the Subscriber Attributes in the Correct Order?

I am retrieving the Subscriber from the API. The Marketing Cloud advertises an Order field in the Profile Management section, that allows attributes to be ordered. Also, there is a "Hidden" checkbox ...
2
votes
1answer
298 views

Exact Target Charset

I send Data via SOAP to Exact Target extension. Everything work fine, but if I send some characters from another languages I have problems. I have tried to set line <?xml version="1.0" encoding="...
2
votes
0answers
120 views

PHP Code Example for Adding Steps, Activities to an Existing Automation?

I'm hoping that someone might be able to share a PHP example for updating an existing automation with an additional Step and an activity associated with that step. The single example (in .Net) for ...

1
3 4
5
6 7