cancel
Showing results for 
Search instead for 
Did you mean: 

SAP IRPA - Get URL of current page after redirect ?

jerome_hoen
Explorer
0 Kudos
424

Hi !

I created a workflow in the Cloud Studio (2.0.10) to login to the Fiori Lanchpad on a S/4HANA cloud. I do it in Google Chrome and I may have to manually authenticate if the user is not logged in already.

I try to check on step #5 if the URL is the one of the launchpad (then I end the automation) or if I need to enter the credentials in step #8 to #14.

What script to add at step #3 to check if I was redirected to log in? I tried this

var infos = Activities.ActivitiesPage.getInfos();
infos.document.url;

but I don't know what are "Activities" and "ActivitiesPages" and where to find them.

Thanks for your help!

Accepted Solutions (1)

Accepted Solutions (1)

ylazrak
Participant

Hi Jerome

I suggest you to use the activity switch screen between the connection screen and the other screens you may have if already connected

Find below an example

Hope this will help you

jerome_hoen
Explorer
0 Kudos

Worked great, thanks!

Answers (0)