password2 in flow designer

kiwi07
Tera Contributor

I am trying to create an action where I have created a REST step and in the rest step I want to pass the header where I want to pass the api_key as Authorization, the problem is that api_key is password2 encrypted , I tried the data pill approach but it does not work, is there an alternate to achieving this may be some other password type which auto decrypts in rest step

 

i have tried var encr = new GlideEncrypter(); but got the below error :

Error: GlideEncrypter is not allowed in scoped applications 

1 ACCEPTED SOLUTION

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @kiwi07 ,

Can you try by writing below line of code

OmkarKumbhar_0-1676033537008.png

 

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

View solution in original post

2 REPLIES 2

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @kiwi07 ,

Can you try by writing below line of code

OmkarKumbhar_0-1676033537008.png

 

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

Thanks @Omkar Kumbhar