Hello guys, I’m pretty new here and am messing around with the gsuite activities.
My question is; is it possible to upload an email attachment into gdrive based on the type (extension) of attachment received on gmail?
Welcome to the community
Yes you can..you have uplod file activities to upload and can use if condition to check the attachment type
Cheers
1 Like
Yes, It is possible
- read email
- download attachments
- foreach attachment
a. get attachment extension
b. upload to G Drive folder based on extension
1 Like
Yes it is possible
Use Get Email List Activity to get the All the mailmessages
For each mailMessage
1) Download Email Attachment Activity to download the attachment
2) Use System.IO.Path.GetExtension(attachment(0).Name)
to get the extension name
3) Use If Condition to check if the extension matches the required extension and in then Use Upload files Activity to Upload the file
Hope this helps!
1 Like