How to write attachment extension to data table?

Hi,

I want to write extension of attachment to Excel or data table. Thank you.

Special thanks to @md.ahtesham and @pllo2ptk

yah ofcourse
to get the fileextension alone of a file or a attachment then
Path.GetExtension(“yourattachmentfilepath”).tostring

Cheers @Atakan_Kiziltan

1 Like

Another way.

Ahtesham

1 Like

“Get extension” is more stable, because if you have unchecked option “show extension” robot will not read it.

2 Likes

It’s very clever method but how I will do it for attachment in mail without saving?

you can use outloook get message activity. Then you have to collect attachments from this and then you can get name of each file (you can use MD.ahtesham method).


instead 0 should be counter for attachments

I couldn’t understand this screen. Where I have to write this text?

1 Like

It is just an example:
image
test is a output of get messages

1 Like

Here you go with a sample xaml which will get us the file extension without saving them
hope this would help you resolve this
attachmentfilextension.zip (10.6 KB)

Cheers @Atakan_Kiziltan

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.