Posted: 5 Jan 2017 11:31 EST Last activity: 16 Oct 2018 12:03 EDT
Calling flow is unsuccessful only when called inside a loop
I have an activity X that specifies the parameters of the flow 'pyInviteUser' (including the email address of the user we want to invite to the Pega App) of the CL PegaAccel-Task-InviteUser and calls the flow through the method 'startFlow'.
The above works successfully: an email is sent to the specified email address.
However if I call the above activity X inside a loop (each time giving it a different email address), then we do not receive an email.
Any ideas about the above?
Thank you in advance,
***Updated by Moderator: Marissa to update categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
One thing I noticed in the traces is the different step page when calling StartFlow in the working vs non-working scenarios. In the working example, startFlow is run with pyWorkPage as the step page. In the non-working scenario, startFlow is called with TempPage.pxResults(1) as the step page. It is possible this is causing the issue as the work object is not present on the TempPage.pxResults(1) page.
This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
We have also sent you a private message opening up a communication channel in case you have any further questions.