custom script action in flow designer is not working

chandan2212
Tera Contributor

Hi All,

 

I have created custom action in the flow designer we are passing input(password)  in the custom action but we are not getting the plain text password

 

chandan2212_0-1753258507263.pngchandan2212_1-1753258558706.pngchandan2212_2-1753258576326.pngchandan2212_3-1753258594718.png

we are getting the password2 output while running the test connection but we are not getting the plain text .

 

Can you help on this .

 

 

Thanks and Regards,

Chandan Patra

1 ACCEPTED SOLUTION

@chandan2212 

from where this action is getting called?

I got the point that you want to send encrypted password to AD server may be via some spoke etc

For GlideEncrypter's encrypt method you need to pass plain text password and then it will give you encrypted value.

GlideEncrypter - encrypt(String clearString) 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

@chandan2212 

are you getting null in the output variable?

Since you are passing mask type input to the input variable and hence it might not be able to print that

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

HI @Ankur Bawiskar 

 

Can you please advise me how to write the script so that it will print the output whatever i gave input.

 

 

@chandan2212 

I will have to check in my instance when I get time.

But is your functionality not working as expected?

Why you are insisting on printing that value?

if your functionality is working as expected then you need not worry

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader