![]() |
VOOZH | about |
The CData Cmdlets Module for Adobe Target is a standard PowerShell module offering straightforward integration with Adobe Target. Below, you will find examples of using our AdobeTarget Cmdlets with native PowerShell cmdlets.
To connect to Adobe Target, you must provide the Tenant property along with OAuth connection properties mentioned below. Note that while other connection properties can influence processing behavior, they do not affect the ability to connect.
To determine your Tenant name:
You must set AuthScheme to OAuthClient for all user account flows.
Note: Adobe authentication via OAuth requires updating your token every two weeks.
Obtaining the OAuth Access Token
Set the following properties to connect:
With these settings, the provider obtains an access token from Adobe Target, which it uses to request data. The OAuth values are stored in the location specified by OAuthSettingsLocation, ensuring they persist across connections.
$conn = Connect-AdobeTarget -Tenant "$Tenant" -InitiateOAuth "$InitiateOAuth"
Follow the steps below to retrieve data from the Activities table and pipe the result into to a CSV file:
Select-AdobeTarget -Connection $conn -Table Activities | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myActivitiesData.csv -NoTypeInformation
You will notice that we piped the results from Select-AdobeTarget into a Select-Object cmdlet and excluded some properties before piping them into an Export-Csv cmdlet. We do this because the CData Cmdlets append Connection, Table, and Columns information onto each "row" in the result set, and we do not necessarily want that information in our CSV file.
The Connection, Table, and Columns are appended to the results in order to facilitate piping results from one of the CData Cmdlets directly into another one.Download a free trial of the Adobe Target Cmdlets to get started:
Download NowLearn more:
👁 Adobe Target IconAn easy-to-use set of PowerShell Cmdlets offering real-time access to Adobe Target data. The Cmdlets allow users to easily read, write, update, and delete live data - just like working with SQL server.