Script Step

AhuelieW
Tera Contributor

Hi guys,

Hope you're doing well. Need your help.

I'm trying to create a script action (or script step) in the Flow designer so i can use it within my flow.

What i want to do is to add a user to specific group, and then will probably remove the user later.

 

Screenshot for adding a user

AhuelieW_0-1750699747808.png

 

The one for removing the user

AhuelieW_1-1750699896531.png

 

Thanks for your help

1 ACCEPTED SOLUTION

YaswanthKurre
Giga Guru

Hi @AhuelieW,

 

Please share your input steps for the action and script inputs screenshot.

 

Thanks,

Yaswanth

View solution in original post

4 REPLIES 4

YaswanthKurre
Giga Guru

Hi @AhuelieW ,

 

Your script is correct, in delete script no need to use while, you can go for if.

 

Please mark this as helpful and correct if this helps.

Thanks,

Yaswanth

Hi @YaswanthKurre ,

Thanks for taking a look at my scripts. However, nothing happens when I test this script action, nor when I use it in my flow.  The user i specify never got assigned to the group.

YaswanthKurre
Giga Guru

Hi @AhuelieW,

 

Please share your input steps for the action and script inputs screenshot.

 

Thanks,

Yaswanth

Realized that i had to use the script input variables instead of the Action input

 

Thanks