Closed bgaller closed 3 years ago
Hi, thanks for posting this. Unfortunately, there is no API call to get a list of jobs and their id. Maybe you can raise a Datto RMM feature request for this. I added Get-DrrmJobStatus to check the status of jobs you have initiated using the API using the Set-DrmmDeviceQuickJob cmdlet, as it does return a job id. In short, you can only check the status of a job created via the API.
I could use some help on the Get-DrmmJobStatus commandlet in Powershell. It is supposed to take as input a jobid. I don't see where to get the jobid. What I am trying to do is to look for a particular job that I have once per week and get the standard output and standard error from that job for all the devices that ran in the job using the Powershell command.
Any ideas how to go through the list of jobs and seek out one with a particular name and then go further through the list of devices that ran that job and get the desired outputs?