lithnet / resourcemanagement-powershell

Lithnet FIM/MIM Service PowerShell Module
MIT License
37 stars 12 forks source link

Save-resource result not returned when exception is thrown #14

Open jgreenephd opened 6 years ago

jgreenephd commented 6 years ago

When saving a resource the request ID is returned on a successful save. We have a situation where an exception is thrown because the save goes into an authorization workflow. Save-Resource : Permission is required The save still completes but the request ID is not returned. Is there a way to capture the ID when an exception is thrown?

jgreenephd commented 6 years ago

Follow up question for you Ryan: Save-Resource does not always return a value. Could you explain on when we can expect the Request ObjectID to be returned?