Python is a widely used easy to learn programing language with which one can automate a lot of salesforce tasks by writing scripts. There are python packages like beatbox among others which are salesforce clients and support commands like SOQL queries, upsert, updating, and creating records in ...

learn more… | top users | synonyms

4
votes
0answers
19 views

Retrieving the ExclusionFilter field of a TriggeredSendDefinition

Using the Python FuelSDK, I am able to ​create​ a TriggeredSendDefinition with an ExclusionFilter, as well as ​update​ an existing TriggeredSendDefinition's ExclusionFilter. This uses the prop ...
-1
votes
1answer
34 views

Need to capture the return value of global class using tooling api

I am calling global function defined in my salesforce org using the tooling api /services/data/v35.0/tooling/executeAnonymous/?anonymousBody= in python and that global class is actually returning a ...
1
vote
1answer
56 views

Planning to build a salesforce automation framework using python

In our organization we have made few of the class as global class in our sales force org. The objective of the global class is nothing but to trigger apex batch jobs. Since apex job being async i ...
3
votes
1answer
46 views

Automation of salesforce packages using python

I would like to automate sales force package installation using python. In my day to day activity i have been spending more time in this scenario. It will be of great help if some one can throw some ...
2
votes
1answer
57 views

Retrieving Rows From Shared Data Extensions via Python FuelSDK

I am using the Python Fuel SDK to access Data Extensions (DEs) and Shared Data Extensions (SDEs). I am able to list all data extensions and see all my DEs and SDEs using the FuelSDK's ...
0
votes
1answer
30 views

Python script unable to validate App Keys with Fuel SDK

I am trying to run a basic Python script to search for a subscriber but it is failing to authenticate. I've set up Python (successfully ran a Hello World script), installed FuelSDK, created a ...
0
votes
0answers
14 views

How do you make query Activities using python FuelSDK?

Why doesn't the FuelSDK have a QueryDefinition class? Is there an easy work around?
1
vote
0answers
40 views

Timeout when attempting to retrieve data extensions

I am new to working with the FuelSDK Python API but I am puzzled by my initial attempts at using it. First, I tried getting content area objects using the steps described here: ...
2
votes
1answer
60 views

How to get a refresh token or redirect_uri for Salesforce API with python?

I'd like to use this PYTHON API Client Library to access the Chatter API client_id = "YOUR_CHATTER_CLIENT_ID" client_secret = "YOUR_CHATTER_CLIENT_SECRET" auth = chatter.ChatterAuth(client_id, ...
0
votes
0answers
32 views

parsing outbound message in python

I am capturing outbound message from salesforce as a POST <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...
0
votes
0answers
13 views

Phython Library Issue with ET API

could someone please help me with latest Python library for Exact Target API? We are getting errors when we use the current library available for importing data. Appreciate any quick response. ...
1
vote
1answer
39 views

User Lock Out (Python/Beatbox)

I'm currently implementing a solution using python to bring in information via the Beatbox module for python. http://tomhayden3.com/2013/08/04/salesforce-python/ I got it to write successfully to a ...
0
votes
1answer
21 views

Metadata API not working on sandboxs

I am trying to connect to the metadata Api via a python script. Essentially, I am authenticating into the SOAP Api, getting a session Id, then setting the session if in my Metadata client class. This ...
1
vote
1answer
47 views

File uploaded empty

I'm trying to upload a file to a salesforce sandbox from my machine using python and simple_salesforce. The file is uploaded to salesforce but is uploaded empty. Can anyone tell me why and how do I ...
1
vote
2answers
50 views

Updating Triggers via the SOAP API

I'm working in Python and trying to use the SOAP Api to update ApexTrigger statuses. I keep getting the following error: [{'errors': [{'fields': [], 'message': 'insufficient access rights on ...
1
vote
1answer
28 views

Retrieving Profile Attributes on the Subscriber Object using Python API

Is it possible to retrieve Profile Attributes on the Subscriber Object using Python API? >>> getSub.props = ["SubscriberKey", "EmailAddress", "Status","First Name"] >>> ...
2
votes
1answer
107 views

Adding Invitees to event programmatically

I have a Google Event with a list of invitees. I have a python code which syncs this event with Salesforce by creating a Event sObject. I queried for the emails in the invitees list of my Google event ...
1
vote
2answers
75 views

Checking whether a given Email address has Salesforce account

I have an email address say [email protected]. I want to know If there is a Salesforce user(need not be in my organization) who has a salesforce account with [email protected] as email. If such a salesforce ...
1
vote
3answers
271 views

What is the best tool for using metadata API in python?

We use Salesforce REST and Bulk APIs extensively and now we have reached a point where we have to use the metadata API. Our use case is pretty trivial. We only have to create a custom object using ...
0
votes
0answers
15 views

Is there a way to link an Event with an email using the FuelSDK?

I'm using the FuelSDK with ExactTarget to pull events such as click, open and sent as well as email information but I'm not able to make the connection between an email and an event with FuelSDK. Is ...
3
votes
1answer
104 views

Using ExactTarget's FuelSDK, how do I parse the response object?

I'm able to successfully retrieve results using Exact Target's Python FuelSDK, but can't figure out the format of the response.results object or how to parse it. It looks like JSON... but not quite. ...
2
votes
1answer
71 views

REQUIRED_FIELD_MISSING when trying to access the Salesforce API with beatbox

I am using beatbox to access the SOAP API of Salesforce. More specifically, I am trying to convert a Lead using convertLead like so # Assuming soap_client is a PythonClient already logged in and # ...
0
votes
0answers
52 views

Generate Complete XML using the RestForce similar to package.XML

is it possible to generate the complete XML similar to the Package.XML which is created using "Eclipse+force.com "... the documented REST API doesn't reveal complete XML it only exposes Fields and ...
4
votes
1answer
68 views

“Not Enough Space” when using RestForce to get the Metadata of Account object

Im Using a developer account, just created to Test retrieve and deploy Metadata using RESTFORCE. r.get('data/v20.0/sobjects/Account/describe/') the above line throws that error. the get request ...
0
votes
1answer
67 views

Fuel API (Python) Starting an Interaction (Program)

I'm currently in the research phase of which API will suite our needs, one of which is starting a Program (which will likely contain a transfer step, import step, user initiated send step). In a ...
2
votes
1answer
89 views

FuelSDK-Python Integration with multiple Business Units - Is this Possible?

In my company's Email Marketing Cloud Account we have multiple accounts (that is business Units). In our earlier integration with SOAP API we were able access the objects in these business units ...
1
vote
1answer
123 views

Unicode issue in Python

I am trying to download SFDC data using the REST API and Python, using simple_salesforce. So I am not sure if this is a SFDC question or a Python question. And I am aware of Python unicode support ...
1
vote
0answers
290 views

Invalid ClientID/ClientSecret from FuelSDK Exacttarget api

I'm getting email actions (opens, clicks, sent) via Exacttarget python Fuel SDK but after a while I'm getting the following error on some occasions: File "../FuelSDK/client.py", line 201, in ...
3
votes
1answer
167 views

Timeout while retrieving email responses via python SDK

Trying to get open events using the python code below: getOpenEvent = FuelSDK.ET_OpenEvent() getOpenEvent.auth_stub = stubObj getOpenEvent.props = ["SendID","SubscriberKey","EventDate","EventType"] ...
1
vote
1answer
196 views

“403::Unknown client” Error When Connecting to Streaming API Push Topic

I am trying to connect to a Push Topic via the Salesforce Streaming API using Python. My application completes the initial handshake correctly, but then fails on the following connect call, with the ...
3
votes
1answer
364 views

Instance Url related error when connecting to SOAP API using Access Token in Python

I am using salesforce-python-toolkit to connect to Salesforce SOAP API. I know how to connect to it using [user, password and security token]. But recently I have learned that I can connect to soap ...
3
votes
0answers
74 views

request.patch gives duplicate value found error for a Salesforce API

I have referred this guide to make patch request to a salesforce api. My python code : headers = {"Authorization" : "OAuth %s"%str(accessToken), "Content-Type" : "application/json"} try: ...
1
vote
2answers
203 views

Can we download salesforce attachment with Python and Beatbox?

I have found the useful BeatBox API. From my understanding we can use BeatBox to upload Attachments to Salesforce. However, how can we mass download Attachments via Python?
3
votes
3answers
891 views

Download a report using python

I have a report that I want to download in a CSV format using a pyhton script. I searched the web for solutions, but none of them worked. This one looked very promising and simple, but unfortunately ...