![]() |
VOOZH | about |
The CData Cmdlets for Monday.com are standard PowerShell cmdlets that make it easy to accomplish data cleansing, normalization, backup, and other integration tasks by enabling real-time access to Monday.com.
The Cmdlets are not only a PowerShell interface to Monday.com, but also an SQL interface; this tutorial shows how to use both to retrieve Monday.com data. We also show examples of the ADO.NET equivalent, which is possible with the CData ADO.NET Provider for Monday.com. To access Monday.com data from other .NET applications, like LINQPad, use the CData ADO.NET Provider for Monday.com.
Once you have acquired the necessary connection properties, accessing Monday.com data in PowerShell can be enabled in three steps.
You can connect to Monday.com using either API Token authentication or OAuth authentication.
Connect to Monday.com by specifying the APIToken. Set the AuthScheme to Token and obtain the APIToken as follows:
Alternatively, you can establish a connection using OAuth (refer to the OAuth section of the Help documentation).
Install the module:
Install-Module MondayCmdlets
Connect:
$monday = Connect-Monday -APIToken "$APIToken"
Search for and retrieve data:
$status = "SENT" $invoices = Select-Monday -Connection $monday -Table "Invoices" -Where "Status = `'$Status`'" $invoices
You can also use the Invoke-Monday cmdlet to execute SQL commands:
$invoices = Invoke-Monday -Connection $monday -Query 'SELECT * FROM Invoices WHERE Status = @Status' -Params @{'@Status'='SENT'}
Load the provider's assembly:
[Reflection.Assembly]::LoadFile("C:\Program Files\CData\CData ADO.NET Provider for Monday.com\lib\System.Data.CData.Monday.dll")
Connect to Monday.com:
$conn= New-Object System.Data.CData.Monday.MondayConnection("APIToken=eyJhbGciOiJIUzI1NiJ9.yJ0aWQiOjE0MTc4NzIxMiwidWlkIjoyNzI3ODM3OSwiaWFkIjoiMjAyMi0wMS0yMFQxMDo0NjoxMy45NDFaIiwicGV;")
$conn.Open()
Instantiate the MondayDataAdapter, execute an SQL query, and output the results:
$sql="SELECT Id, DueDate from Invoices"
$da= New-Object System.Data.CData.Monday.MondayDataAdapter($sql, $conn)
$dt= New-Object System.Data.DataTable
$da.Fill($dt)
$dt.Rows | foreach {
Write-Host $_.id $_.duedate
}
Download a free trial of the Monday.com Data Provider to get started:
Download NowLearn more:
👁 Monday.com IconRapidly create and deploy powerful .NET applications that integrate with Monday.com.