If you feel like combining PowerShell with OData and D365FO, then look no further than the module called d365fo.integrations. Here’s a small snippet to get you up and running
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
$modules = @("PowerShellGet", "nuget", "d365fo.integrations", "az") foreach ($item in $modules) { $module = Get-InstalledModule -Name $item -ErrorAction SilentlyContinue if ($null -eq $module) { Install-Module -Name $item -Force -Confirm:$false -Scope CurrentUser -AllowClobber } write-host "installed" $item } Import-Module -Name d365fo.integrations # Enable Exceptions Enable-D365ExceptionIntegrations Add-D365ODataConfig -Name "D365EnableUsers" -Tenant $Tenant -url $ODataSystemUrl -ClientId $OData_client_id -ClientSecret $OData_secret -Force Set-D365ActiveODataConfig -Name D365EnableUsers -Temporary |
As always, the home site of this module is found here: https://github.com/d365collaborative/d365fo.integrations – founded by one or two genius minds at Essence Solution in Denmark. Its open source and the authors welcome pull requests and other contributions, so dive right in.
I’ll show an example or two in a following post on sample commands to use with this module.