File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
UiPath.PowerShell/Cmdlets Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -214,15 +214,20 @@ protected override void ProcessRecord()
214
214
}
215
215
SetOrganizationUnit ( authToken , OrganizationUnit ) ;
216
216
}
217
-
218
- if ( ! string . IsNullOrWhiteSpace ( FolderPath ) )
217
+ else if ( ! string . IsNullOrWhiteSpace ( FolderPath ) )
219
218
{
220
219
if ( authToken . ApiVersion < OrchestratorProtocolVersion . V19_10 )
221
220
{
222
221
WriteError ( "Use of FolderName requires Orchestrator version 19.10 or newer." ) ;
223
222
}
224
223
SetCurrentFolder ( authToken , FolderPath , Timeout ) ;
225
224
}
225
+ else
226
+ {
227
+ authToken . CurrentFolder = default ;
228
+ authToken . OrganizationUnit = default ;
229
+ authToken . OrganizationUnitId = default ;
230
+ }
226
231
227
232
authToken . TenantName = authToken . TenantName ?? TenantName ?? "Default" ;
228
233
You can’t perform that action at this time.
0 commit comments