Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4806

How do I programmatically run a query against Salesforce Marketing Cloud

$
0
0

I am trying to automate the extraction of data from some Data Extensions within Salesforce Marketing Cloud (formerly Exact Target).Currently, there are queries being run from within the Query Studio (e.g.select distinct CompositeKey as ActivityCompositeKey, Type, BounceCategory from SendLogAnalyticsForExport where Type='EmailSent')How do I do this from within an externally run process (that I will be writing, ideally in C#)?

I have credentials to connect to the marketing cloud apis as well as the AuthN and REST and SOAP URL

AuthURL: https://XXXXXXXXXXX.auth.marketingcloudapis.com/v2/tokenClientId: YYYYYYYYYYYYYYYYClientSecret: ZZZZZZZZZZZZZSoapURL: https://XXXXXXXXXXX.soap.marketingcloudapis.comRestURL: https://XXXXXXXXXXX.rest.marketingcloudapis.com

I have looked into the documentation for the "Marketing Cloud Engagement APIs and SDKs" and found the REST API and SOAP API. But there's nothing specifically geared at running a query in the form specified above (i.e. SQL-like query that can be run from within the Query Studio).

The closest thing I saw was the documentation for "Query Data using Query API V1" within the Salesforce "Data Cloud Reference Guide"; however, this also does not seem to be targeted at Marketing Cloud (also, the explanations were rather scant: nothing about the actual endpoints to hit, no info about the authentication method).

In addition, I have looked at the FuelSDK-CSharp library. But, once again, nothing specifically geared at running a SQL-like query against Data Extensions.


Viewing all articles
Browse latest Browse all 4806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>