Python script - create multiple requests from parent request

Python script - create multiple requests from parent request

Hello, hoping someone could help me.
I'm using the script  https://resources.manageengine.com/resources/resource/python-script-to-trigger-the-creation-of-new-request-based-on-field-resource-values-in-parent-request to generate child requests using a custom menu action. It's working well, but I need to be able create a second and third request, all adding the notes to the parent request.

I've basically just copied the first json creation and json recall code with new variables to ensure it doesn't use the first request json. 

The first child request creates and the related note is added to the parent request just as it is supposed to. It then creates the second child request just fine, but doesn't add a note to the parent request. There aren't any errors. I've tried adding a time.sleep to try and slow it down in case it was still processing one when the other was triggered, but no luck.

Any tips on understanding what I need to do to create the second and third child requests?

Thank you!

Helen

                  New to ADSelfService Plus?