cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Intelligent RPA - Ajax Get Method with Basic Auth

xbealan
Explorer
0 Kudos
302

Hello everyone,

I'm trying to use 'call a web service' activty. But there is an error here that I missed.

I'm trying to get access_token after this get request. Could you please help me? I didn't work a lot on webservice calls before.

Thank you all.

Regards,

Bengu

Accepted Solutions (1)

Accepted Solutions (1)

rohit_singhal
Active Contributor

Hi Bengu,

Couple of observations:

1. Your URL is : 'https:\\\\....' format. Could you please try the property as below:

url : "https://<type your url here>",

2. Please try the below way to fetch access token:

success: function(res, status, xhr){
   token = ctx.json.parse(xhr.responseText).access_token;
}

Best Regards,

Rohit

Jerome
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

res should already be a parsed variable. No need to do it again with xhr.responseText

xbealan
Explorer
0 Kudos

Hi rohit.singhal ,

Thank you a lot. It worked 🙂

Regards,

Bengu

Answers (0)