Retrieve a code from an email that arrives - IMAP

I need to retrieve a code from an email that arrives when I trigger a ‘Send’ in the workflow. The issue is that the email comes with a delay, and I need assistance in fetching that code. I’ve tried using ‘Retry Scope’, but I can’t figure out how to set the condition; the window seems inactive. However, there might be another solution to wait and retrieve that code. Thank you very much!
imap5
imap4
imap3
imap2
imap1

Hi @alinamtomsa, welcome to the Community.

As you said you need to retrieve a code from an email that arrives when you trigger a workflow, We suggest you identify any unique element that is associated with the arrival of the email. If any such elements are available, then you can directly use the ‘On Element Appear’ activity to proceed with the retrieval of the code. This activity will basically provide you with that necessary delay that is associated with the send trigger & might help you with your use case.

Hope this helps,
Best Regards.

Thank you! I tried the option you suggested, but I got the error below. I can’t figure out how to get past it.

image

@alinamtomsa

Make sure you are not using any instance of the variable in the code before initializing the same. Also, try to close the studio, open it again & run the process to check whether it works or not.

Hope this helps,
Best Regards.

elementappearset