![]() |
VOOZH | about |
The CData Cmdlets Module for SAP Ariba Procurement is a standard PowerShell module offering straightforward integration with SAP Ariba Procurement. Below, you will find examples of using our SAPAribaProcurement Cmdlets with native PowerShell cmdlets.
In order to connect with SAP Ariba Procurement, set the following:
After setting connection properties, you need to configure OAuth connectivity to authenticate.
For more information on creating an OAuth application, refer to the Help documentation.
After setting the following, you are ready to connect:
When you connect, the provider automatically completes the OAuth process:
$conn = Connect-SAPAribaProcurement -ANID "$ANID" -API "$API" -APIKey "$APIKey" -AuthScheme "$AuthScheme" -InitiateOAuth "$InitiateOAuth"
Follow the steps below to retrieve data from the Orders table and pipe the result into to a CSV file:
Select-SAPAribaProcurement -Connection $conn -Table Orders | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myOrdersData.csv -NoTypeInformation
You will notice that we piped the results from Select-SAPAribaProcurement 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 SAP Ariba Procurement Cmdlets to get started:
Download NowLearn more:
👁 SAP Ariba Procurement IconAn easy-to-use set of PowerShell Cmdlets offering real-time access to SAP Ariba Procurement. The Cmdlets allow users to easily read, write, update, and delete live data - just like working with SQL server.