seanmcne / Microsoft.Xrm.Data.PowerShell

This module uses the CRM connection from Microsoft.Xrm.Tooling.CrmConnector.Powershell and provides common functions to create, delete, query, and update data as well as functions for common tasks such as publishing, and manipulating System & CRM User Settings, etc. The module should function for both Dynamics CRM Online and On-Premise environment.
201 stars 64 forks source link

Provide PS native progress indication for solution imports #480

Open matwilko opened 3 years ago

matwilko commented 3 years ago

Import-CrmSolution/Import-CrmSolutionAsync currently give no feedback to the user unless they specifically use -Verbose, and Import-CrmSolutionAsync doesn't give any progress indication even when using -Verbose.

Powershell has a native progress indication mechanism, Write-Progress, which can be leveraged to provide the user feedback on solution import progress without filling up their prompt with progress messages.

Import-CrmSolutionAsync could also leverage the same logic as Import-CrmSolution to poll the import for progress if $conn.ImportSolutionToCrmAsync is used rather than manually generating an asyncoperation and submitting. ImportSolutionToCrmAsync outputs both the asyncoperation and importjob ID's, allowing us to poll the status of both to provide useful progress feedback to the user.

DrPye commented 10 months ago

I see there's a PR currently for this (#481) , is it going to get accepted in the near future or should I just add the changes myself for now?

seanmcne commented 10 months ago

I was hoping to hear back on the testing but it looks like it fell off the radar. Would you be willing to test the code used in the PR?

DrPye commented 10 months ago

I don't mind testing it out, please bear with me end of the month is hectic but I will update the PR with my findings when I'm done👍

seanmcne commented 9 months ago

Much appreciated - thanks!