on 06-04-2020 7:40 PM
Hi,
I'm facing some issues with fetching variables and credentials from Cloud Factory. Everything worked fine for a while, but recently code stop working properly. I use the code provided by SAP in a blog post regarding Cloud Factory variables. When the code below is executed, 'Username fetch failed' message is logged. Do you have any idea why is that? Did SAP change anything in Cloud Factory API, so that this code should not work now for any reason? Of course, all variables and credentials exist in Cloud Factory environment.
Thanks!
var credDeclaration = {}; credDeclaration["XYZ"] =
{
server: true
}
ctx.cryptography.credential(credDeclaration);
//////////
ctx.cryptography.credentials["XYZ"].get(function (code, label, credential)
{
if (code === e.error.OK)
{
sc.localData.cred =
{
username : credential.userName.get(),
password : credential.password.get()
}
rootData_Main.password=sc.localData.cred.password;
rootData_Main.user_name=sc.localData.cred.username;
ctx.log("LOGIN: " +sc.localData.cred.username);
}
else
{
ctx.log("Username fetch failed");
}
});
Hi Filip,
Please have a look on the below blog's link, I hope it is helpful to you.
Configure Agents, Agent groups and Machine in SAP Intelligent RPA Cloud Factory
Best regards,
Vishal Kumar Dubey
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Filip,
It seems your machine is not configured in the Cloud Factory. First, you get it configured, and then you will be able to choose the Environments here.
Meanwhile for more details, please have a look on the below.
SAP Intelligent RPA – Use of Credential and Setting Activities (SAP iRPA Desktop Studio)
I will reply to you soon here with the steps required to configure Agent, Agent Groups, and Environments.
Best regards,
Vishal Kumar Dubey
Hi srinivas1984_rao
Please make sure that the credential name should be the same while using it in Desktop Studio. Please check the steps in Configure Agents, Agent groups and Machine in SAP Intelligent RPA Cloud Factory
SAP Intelligent RPA – Use of Credential and Setting Activities (SAP iRPA Desktop Studio)
If it is still not working then please provide the issue in detail.
Hope it is helpful.
Best regards,
Vishal Kumar Dubey
Hi visdubey - Yes, the variable name is exactly same. It is for the standard bot FAGLL03H. the variable name should be: FAGLL03HLogin ( though this is not given in the documentation, I found it out from the code ). It does not work. Can you please confirm if the variable that I found is correct?
Thanks & Regards
Srinivas Rao.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.