Skip to content

Commit 251eeff

Browse files
author
Randy
committed
Updated DataExtension examples with RetrieveOptions example.
1 parent c1a95a8 commit 251eeff

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

objsamples/sample_dataextension.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@
1919
print 'Results Length: ' + str(len(getResponse.results))
2020
#print 'Results: ' + str(getResponse.results)
2121

22+
# Get all of the DataExtensions in an Account belonging to a specific sub account
23+
print '>>> Get all of the DataExtensions in an Account belonging to a specific sub account'
24+
de = ET_Client.ET_DataExtension()
25+
de.auth_stub = stubObj
26+
de.props = ["CustomerKey", "Name"]
27+
de.options = {"Client": {"ID": "1234567"}}
28+
getResponse = de.get()
29+
print 'Retrieve Status: ' + str(getResponse.status)
30+
print 'Code: ' + str(getResponse.code)
31+
print 'Message: ' + str(getResponse.message)
32+
print 'MoreResults: ' + str(getResponse.more_results)
33+
print 'RequestID: ' + str(getResponse.request_id)
34+
print 'Results Length: ' + str(len(getResponse.results))
35+
#print 'Results: ' + str(getResponse.results)
36+
2237
# Specify a name for the data extension that will be used for testing
2338
# Note: Name and CustomerKey will be the same value
2439
# WARNING: Data Extension will be deleted so don't use the name of a
@@ -185,4 +200,4 @@
185200

186201
except Exception as e:
187202
print 'Caught exception: ' + str(e.message)
188-
print e
203+
print e

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy