Skip to main content
Question

Policy that recalls itself

  • September 23, 2025
  • 1 reply
  • 23 views

drewcymek
Forum|alt.badge.img+4

Hey all,

Working on a script that prompts the user for information. Once complete, I set the script to ask the user if they would like to enter another response. If yes, a policy is triggered to call the script again. I seem to be getting an error. I believe it is because you can’t trigger a policy that is already running.

I’m aware I can make the loop within the script. Just want to confirm that this is not possible. Has anyone run into this or found another option?

1 reply

_Daley
Forum|alt.badge.img+6
  • Contributor
  • September 23, 2025

That is correct, you can’t call a policy while running that same policy. 

The best option, would be to place the part of the script for inputting the information in a function, and just calling that again within the script.