I can use Get Credential by selecting the folder in the dropdown list and the selecting the asset in the second dropdown list but I don’t want to do that. Why? At this moment the architecture is not fixed and the folder structure may change in the future. So I want to simplify possible future changes and I want to do this:
Any clues why I cant make this to work properly. There is not error in the folder since Im using it to retrieve items from the queue located in the same folder.
In the Assets sheets of Config file pass the Asset name in that.
After that in the Get Asset open the Advanced editor, and pass Inconfig("Asset name").ToString. You need not give the folder name as you said it will change in future.
Thanks to your answer I could find the real problem.
Even if the activity does not show error I opened the editor to write the new way to call the string from the config file. I found that what was written is this:
“Config(“OrchestratorQueueFolder”).ToString”
Instead what the activity showed was:
Config(“OrchestratorQueueFolder”).ToString
I changed it from the editor and then It all worked.
Also I applied your solution as I think is a best practice than have the asset name hardcoded.
I hope you got the solution for your query, if yes, please mark my post as solution to close the loop. or if you have any questions I’m happy to help. @Pelayo_Celaya_Fernandez
This happens because the Get Credentials Activity is in Autocomplete mode (where you need to select instead of typing).
You can switch to normal mode by clicking the plus button->Use Variable->Select any variable. Afterward you can edit the text field with any value you like. You need to do this for both fields.
The Autocomplete mode is indicated by the downward arrow. E.g. the below activity will trigger an error because it’s in Autocomplete mode and we typed in the values instead of selecting:
To get it to work we need to select “Use Variable” for both fields. (Notice now that the downward arrows are gone.)