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
0answers
144 views

Getting error while integrating php with salesforce

I have integrated my PHP application with salesforce. I cant retrieve any data from salesforce . I am getting this following error . org_config.php <?php define("USERNAME", "xxxx@yyyy.com");...
0
votes
1answer
603 views

Having Trouble with Force.com REST API oAuth2 Authentication

I am experimenting with Pat_Patterson's "Interact with the Force.com REST API from PHP". I am using PHP Version 5.6.3 , and I already registered my app via Setup->Create->Apps->Connected Apps. I setup ...
1
vote
1answer
130 views

Is it possible to export contacts from users salesforce accounts using external application (php)

So I'm building an application which exports contacts from various CRMs and unifies that data to run marketing reports on their contacts. I was easily able to get HubSpot and InfusionSoft working ...
0
votes
1answer
72 views

Which of all of the custom fields on a custom objects are required?

I created a stdclass() object to upsert into Salesforce. I can upsert other custom objects in this way, but there is one that I can't get to work. Here is the error message that I get **** Creating ...
0
votes
1answer
127 views

Salesforce integration with php

Afternoon, I am currently having an issue displaying data from newly added fields within my php page? Here is an example. [http://cvm.org.uk/salesforce/sport-details?id=003D000001r6G3tIAE][1] <?...
0
votes
1answer
84 views

Where can I find records that I created using the PHP Toolkit API?

I am new to the PHP Toolkit and I am trying to understand where I can find standard objects/records that I have created using the following code in a php file downloaded from the PHP Toolkit sample ...
1
vote
1answer
625 views

How to create SFDC web hook in PHP?

I want to create salesforce web hook in php.Actually purpose is, if any record added in user object or contact object or account object, then there should come intimation in my application side where ...
1
vote
1answer
852 views

SOAP API - How to set an email attribute?

I'm creating an email via the SOAP API. So far, this is working: // SOAP client @$client = new ExactTargetSoapClient($wsdl, array('trace'=>1)); // Login details $client->username = 'xxx'; $...
0
votes
2answers
440 views

Fuel-SDK: How to upsert (UpdateAdd) DataExtension row

PHP's startker-kit has an UpdateAdd save action, which basically inserts a row if its ID doesn't exist and updates it if the id exists. Is there an equivalent in PHP's Fuel-SDK? Or do I need to write ...
0
votes
0answers
121 views

Migrating to Node.js from ExactTarget's PHP starter kit

I wrote a custom class based off of ExactTarget's PHP starter-kit to manage our newsletters sign-ups, it gets the job done. Problem is, my company wants to outsource this task to a third party, it ...
0
votes
1answer
102 views

Web Crawler Page Request only retrieves Redirect

I'm using PHP to retrieve some Salesforce content, but when I do a request, Salesforce only return redirect information (such as: window.location.replace('link_here'). Is there a reason for that? Is ...
1
vote
1answer
2k views

Upsert blank date via Salesforce REST API

How can I update with a blank date via the REST API? Do I need to "allow NULL values" someplace? I'm having trouble doing an upsert when I have a blank date value. I'm syncing with MySQL so it is ...
1
vote
2answers
253 views

SOQL Select Statement within Select Statement in PHP

I have the following query: SELECT Name, Media_RO_Status__c, (SELECT OldValue, NewValue, CreatedById, CreatedDate FROM histories) FROM Registration_Object__c The response I get in php is: SObject ...
0
votes
0answers
111 views

Nested SOQL Query in PHP

I've the following SOQL query in PHP SELECT Id, Contact.Account.Name, CommunityNickname FROM User where CommunityNickname != '' That returns an sObject, however, when I try to retrieve the fields I ...
-1
votes
1answer
207 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 ...
1
vote
1answer
87 views

PHP toolkit wrong character count for returned values of subquery

I'm relatively new to Salesforce and the Salesforce API and came across something that seemed odd, your help would be appreciated. I'm using the following query with the PHP API: $query="Select ...
1
vote
1answer
94 views

How to integrate Login with Salesforce

I have registered a Developers Edition. When try to connect to their API it returned me an error saying "API_DISABLE_ORG" something like that. They said that i have to contact Salesforce for this. I ...
0
votes
0answers
19 views

Not getting the whole records using php toolkit

I am using the PHP Toolkit and execute the below query SELECT AssetId,CaseNumber, Chat_Confirmation_Taken__c, ClosedDate,Component__c, Description,Id, IsEscalated,Issue_Description__c,RecordTypeId,...
7
votes
2answers
5k views

REST API: "INVALID_SESSION_ID" with valid token

I'm having some trouble accessing API endpoints using a valid token that I just got from the OAuth process. I'm passing data as I think I should and am trying to access any endpoint at this point (...
2
votes
2answers
1k views

Class not found with Php app hosted on Heroku

I developp a PHP application hosted on Heroku and which use the PHP Toolkit to interact with Force.com. When I run the app on my computer, it works, data from Salesforce.com are loaded but when I ...
2
votes
1answer
51 views

Dropdown values while creating a case

I am using the below query $query="SELECT Account.Name, AccountId, Add_Phone__c, AssistantName, AssistantPhone, Birthdate, Call_Phone__c, CreatedById, ...
1
vote
2answers
221 views

How can I upsert using the Company standard field as identifier?

Basically I have this code right now $createResponse = $client->create(array((object) $Billing_Obj), 'Lead'); foreach ($createResponse as $lead) { $Lead_Id = $lead->getId(); } and I'd ...
0
votes
0answers
44 views

Product details by using contact id

I have a contact table in this table there are two fields contactId and AccountId. Contact Table->ContactId ,AccountId(Fields of contact table). I have a product table. In this table i have AccountId ...
1
vote
0answers
46 views

DOMDocument::createElementNS():

I am getting this error DOMDocument::createElementNS(): unterminated entity reference aV5W when I try to perform the SOAP call to get the VersionInfo. I am suspecting that I have a "&"...
1
vote
1answer
406 views

How to associate a lead with a campaign by php salesforce api

I can create lead via salesforce php api toolkit , by my client said every lead should be associated with a campaign , and he gave me a campaign id . The campaign id is similar to something like this "...
2
votes
1answer
103 views

Retrieving the stopped/started status of a program via API in Exact Target?

We have a few Programs that we need to check to see if they are started/stopped. Is there a way to check these statuses via API? My first attempt was using the AsyncActivityStatus object, but it ...
6
votes
1answer
731 views

Salesforce - business logic - best practices

I would be really grateful if anybody could help me clarify, where to deploy business logic. I'm aware of the following possibilities: Write the main parts of the business logic in Apex Apex ...
1
vote
1answer
777 views

Creating a Task via the PHP Toolkit API

have been trying to use the php toolkit to create a task for a while and am stuck. This is the code I am using currently: $mySforceConnection = new SforceEnterpriseClient(); $mySforceConnection->...
0
votes
1answer
310 views

PHP Fuel SDK - Sending TriggeredSend Asynchronously

It does not appear that I can send an asynchronous TriggeredSend call to the system with the PHP SDK. Am I missing something? I can add Priority to the props which gets attached to the ...
1
vote
1answer
216 views

How to login only via access token

Is there a way to use only access token to login via api? $mylogin = $mySforceConnection->login("...", "...");
0
votes
1answer
962 views

ExactTarget PHP FuelSDK with Sandbox Account: Unable to Auth

I simply cannot seem to get authenticated. I've copied/pasted the ID and secret. No go. Fatal error: Uncaught exception 'Exception' with message 'Unable to validate App Keys(ClientID/ClientSecret) ...
0
votes
1answer
884 views

PHP API (SOAP nor REST) Triggered Send Not Working

I've tried this: $url = "https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:ac_alerts/send"; $content = json_encode('"To": {"Address": "example@example.com", "SubscriberKey": ...
2
votes
1answer
520 views

Is there anyway to delete a SF object record using the PHP toolkit?

I've this object relation: Group_Test__c <---> AssociationGroupOrder <--> Order So I can have a N:N realtion between Groups and Orders. I'm working with the PHP Toolkit. ...
2
votes
1answer
81 views

Columns aren't being returned from api query

I'm using the php SF api with the soap client. I've had a script running that pulls in some info from our SF database and does some stuff with it on our local database. Before, this was the query I ...
0
votes
1answer
866 views

Insert data into custom object with php salesforce toolkit

I can insert data to salesforce in any standard object Like Leads, Contacts etc . But my client has created a custom object . That object name is survey , and there are several survey questions Like ...
1
vote
1answer
177 views

ET Subscriber added via SOAP API, but does not appear in marketing cloud

I am using a client's ExactTarget credentials (API User = yes) to add email subscribers using the SOAP API from my webapp. The API call returns a "Subscriber created" msg, but the subscriber info ...
0
votes
4answers
3k 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
vote
1answer
106 views

Send TriggeredSend with data from DataExtension

I currently have: DataExtension TriggeredSend E-Mail template All Subscriber List What I now want to do is the following: I want to send a TriggeredSend and insert data into the E-Mail from the ...
5
votes
1answer
871 views

Salesforce SSO and SimpleSAMLphp - not redirecting to startURL on logon

I am using SimpleSAMLphp as an Idp and Salesforce as the Sp. I have it working so that I can go to the Salesforce login page and use the additional button to logon using SSO, as per step 1 in this ...
2
votes
1answer
3k views

POST to SOAP Salesforce API in PHP

I am implementing my own SOAP API with Salesforce. I am not using the Salesforce PHP Client add-on. I am trying to create a new object, such as a Contact or Lead, via the API. My code to POST the ...
2
votes
1answer
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 ...
1
vote
1answer
319 views

OAuth Token Management - Fuel SDK (PHP)

What are recommended best practices for reusing the OAuth token for the ExactTarget Fuel SDK? On my website once I get a valid OAuth token, I cache it for 15 minutes and use that same token for all ...
0
votes
2answers
613 views

Select AccountId from Order

I'm new to Salesforce and SOQL but not PHP and SQL, therefore this question is a little odd to myself that I can't figure it out. The Enterprise SOQL query runs fine and presents the desired results ...
0
votes
0answers
273 views

What are the values for "Full Name" "First Name" and "Last Name" as they are entered into the props array for setting?

I'm trying to build a custom opt out page. The page will have a form to update the user's profile information. My code looks like this: function updateUser($idNum, $userEmail, $fullName, $firstName, $...
1
vote
0answers
406 views

ExactTarget - FuelSDK-PHP, error: Server did not recognize the value of HTTP Header SOAPAction

I am working in our ExactTarget FuelSDK-PHP integration over my local PHP server, that is a : PHP 5.5.9-1ubuntu4.5 (cli) Also I have installed in my local PHP server the extensions of: mcrypt : ...
1
vote
0answers
476 views

Salesforce API reset password not working for certain accounts

I have a Salesforce support cases self-service partner portal built using the Force.com PHP Toolkit. Everything is working fine with the portal except for certain users cannot use the "Forgot Password"...
2
votes
0answers
139 views

Updating Automation Object via Fuel SDK

I'm having trouble getting an Automation to update via the Fuel SDK (PHP flavor). I can retrieve the object's properties, but cannot seem to update. My code: $objectType = 'Automation'; $properties = ...
0
votes
1answer
100 views

Allow access to salesforce from any domain using php

I am a newbie to Salesforce and need to allow access to it using my website. I have gone through the documentation provided by salesforce but it did not help. https://help.salesforce.com/...
6
votes
1answer
891 views

Returning Oauth token with REST API via PHP arrays when trying to send new contacts

In the salesforce REST API documentation, it tells how the system can give Oauth Tokens (https://code.exacttarget.com/apis-sdks/rest-api/v1/auth/requestToken.html ) But I don't see any documentation ...
1
vote
1answer
449 views

How to update a send definition using exact target's api

I would like to update the list id associated to a send definition. How do we go about doing this?

1 2 3
4
5
7