Thanks, I will give it a try.
One more kind of random question… so you’ll know what I am trying to do.
Trying to demo remote execution of a bot.
The problem I have been having is that the REST call “logs in” and shuts down the Remote Desktop Connection I have to the server running the bot.
I’m trying to show the REST invocation and the bot running remotely.
You think this will still cause the RDC session to drop?
I tried running with Credential Target in above format, but it gave below error.
{“message”:"StartJob : mscorlib, \n System.AggregateException: One or more errors occurred. —> System.Exception: Password or Credential must be specified. Job’s username {0}, Windows Identity {1}\r\n at UiPath.Service.Impl.CredentialStore.ValidateAuthentication(UserIdentity identity)
Is the Parameter name changed to other name in new version, because it seems it is not recognizing that windows credentials have to be used?
Have you added the credential into the windows credential manager and used that credential name here?
according to this error you have not specified so you are getting this and other thing if you are using credentialTarget property then you don’t have to specify username and pasword property.
{"message":"Executor start process failed, reason Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"}
So i am guessing since the UIRobot svc is running in say user X which is my local system account, it will not allow another credential say User Y in non windows server. But might be possible in VM or Windows server. May be @badita can correct this statement if i am wrong.
You are targeting the Users credential into the windows credential manager so it is appropriate field and most important depends on the API developer and parameters they have taken.
You have to read all things here first, Your some doubts will be clarify easily.
@aksh1yadav i have already gone through that article . But with CredentialTarget it gives the error mentioned intially.
And also i have added windows credentials in manager and also tried with using only credentialTarget property removing username and password.
With the above method(using credential paramater), i understand that the API parameter mentioned is credentialTarget, but i tried using credential which gave an Job ID in POSTMAN API client.
The credential target represents the target name of a credential defined in Windows Credential Store. This credential will be retrieved by UiRobot service and used for auto-login and workflow execution.
Not sure if you are aware, but a user can read credentials only from its Windows Credential Store. Because of this, the credential must be saved in Local System’s credential store. This way, UiRobotSvc is able to retrieve it and use it.
Regarding the other questions, the name of the parameter is CredentialTarget not credential. And yes, username must be specified as well and it must match the user set in the credential stored in Windows Credential Store.
As @badita said, this API can be used, but is no longer maintained.