Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

PowerShell How to capture error and assign it to a variable for Invoke-PowerBIRestMethod

I'm trying to write error to log file.. this specific API when it is unable to invoke it has the error message in the console as following   // Code try                   {       ...