Ready to get started?

Learn more about the DocuSign PowerShell Cmdlets or download a free trial:

Download Now

PowerShell でDocuSign Data データをCSV に落としてみた

標準PowerShell cmdlets を使ってDocuSign テーブルにアクセス。

CData Cmdlets Module for DocuSign は、直感的なDocuSign データ連携を提供する標準cmdlet です。 本記事では、DocuSign Cmdlets を使ったサンプルを提供します。

Creating a Connection to Your DocuSign Data

To connect to DocuSign, set the following connection properties:

  • UseSandbox: indicates whether current user account is sandbox or not (FALSE by default)
  • AccountId (optional): set it in the connection string if you have access to multiple Account Ids

Authenticating to DocuSign

DocuSign uses the OAuth authentication standard. To authenticate using OAuth, you will need to create an app to obtain the OAuthClientId, OAuthClientSecret, and CallbackURL connection properties. See the Help documentation more information.

$conn = Connect-DocuSign  -OAuthClientId "$OAuthClientId" -OAuthClientSecret "$OAuthClientSecret" -CallbackURL "$CallbackURL"

Selecting Data

Follow the steps below to retrieve data from the Documents table and pipe the result into to a CSV file:

Select-DocuSign -Connection $conn -Table Documents | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myDocumentsData.csv -NoTypeInformation

You will notice that we piped the results from Select-DocuSign 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.
 
 
ダウンロード