Show content of an email

Hello friends,
@Rammohan91, @balupad14, @Gouda_6, @Florent_Salendres, @ClaytonM, @vvaidya, @Palaniyappan,

how is it possible to show the content of the emails while processing them?
I need to show the body of each email in the output collection of the activity “Get Outlook Mail messages”, in order to make it visible in a video.
Can ypu please share a workflow of how to do that?
Thank you so much,
Cami :slight_smile:

@CamiCat

Use ForEach loop activity to iterate list of mails and then use Call Out activity and pass item.body.Tostring to show body of the mail and it will show it for certain amount of time.

https://activities.uipath.com/docs/callout

1 Like

Thank you so much @lakshman.
the solution doesn’t work because the messgae is to large to be processed :frowning:
Is ther another solution?
Thank you so much.
Cami :slight_smile:

1 Like

Assuming you don’t want to split up the body into parts and use a Callout for each part of the body, there is one way where you write the text to a file, then open the file maybe.
Like, Write Text File, then open in Notepad or another text-editor.

If you do want to use the Callout then you would need to split it up. Like for example, String.Join(Environment.Newline,body.Split(Environment.Newline(0)).Take(10))
will take the first 10 lines of the text, and you can use .Skip(10).Take(10) to get the next 10 lines.

3 Likes