When I follow the instructions to configure the GetAppCredentials.xaml, I cannot find the value for in_Credential argument. I am using UiDemo_Login as credential name in Orchestrator and replace “in_Credential” with “UiDemo_Login” however the same issue exist.
When I follow the instructions to configure the InitAllApplications.xaml and invoke the UiDemo_Login workflow, no argument is displayed when I click the button"Import Arguments". Should I create an argument to save the value of “in_Config(“UiDemoPath”).ToString”? How to set the property of this argument?
When I follow the instructions to configure the GetAppCredentials.xaml, I cannot find the value for in_Credential argument. I am using UiDemo_Login as credential name in Orchestrator and replace “in_Credential” with “UiDemo_Login” however the same issue exist.
Ans: Please try the following steps:
In the Assets (In Orchestrator) create an Asset of type “Credential” with the username and password.
In the Config file (The config file that comes with the Framework) the “UIDemo_Login” should be under the worksheet “Settings”. Let us assume we have configured it in the Settings as Name: UiDemo_Credentials and Value : UiDemo_Login.
For the Import arguments of the “GetAppCredentials” pass the value in_Config(“UiDemo_Credentials”).ToString to in_Credential.
Question 2:
When I follow the instructions to configure the InitAllApplications.xaml and invoke the UiDemo_Login workflow, no argument is displayed when I click the button"Import Arguments". Should I create an argument to save the value of “in_Config(“UiDemoPath”).ToString”? How to set the property of this argument?
Ans:
You can store the UiDemo Path as an asset and use the “Asset” worksheet or you can use the “Settings” worksheet and store the path there as well.
The in_Config is already an argument to InitAllApplications.xaml , so you can just use in_Config(“UiDemoPath”).ToString in the Start Process activity.
If the Argument is missing create an argument eg: Name: in_Config Direction: In Argument Type: Dictionary(String,Object)
Thanks for your kind advice. For Question 2, I am actually looking for the issue of the value of “in_Config(“UiDemoCredential”).ToString” instead of “in_Config(“UiDemoPath”).ToString”.
I believed that the walkthrough instruction mix the sequence of the steps for Q1 and Q2. If Q2 the argument “in_Credential” is defined and assigned the value properly, Q1 should be solved naturally.
In the Assets in Orchestrator - Create the Asset “UiDemo_Credentials” of type Credential and give the username and Password.
In the Settings sheet “Name”: “UiDemo_Credentials” Value: “UiDemo_Credentials”
In the sequence/flowchart where you call the GetAppCredentials (ensure the config file is an input argument in the workflow from where the GetAppCredentials workflow is invoked and that the Argument is mapped correctly from the Invoked workflow) .
Example: If the GetAppCredentials is invoked from the Main (in_Credential will be Config(“UiDemo_Credentials”).ToString)
If the GetAppCredentials is invoked from other workflows (Example: InitAllApplications - please ensure there is an argument for Config - like in_Config (Direction:In, Argument type: Dictionary<String,Object>). Then in the GetAppCredentials Import arguments pass the value in_Credential as in_Config(“UiDemo_Credentials”).ToString)