Create your first automation in just a few minutes.Try Studio Web →
by Internal Labs
2
Activity
43.5k
How to delete mail using mail message id
Hi,
We are facing issues when using the get message by id, get label and create label activities in UiPathTeam.Gmail.Activities => 1.0.6822.33137
Its storing the cred/token file in default location: C:\Users\username\Documents\.credentials\gmail-credentials.json
It would be great if we are given a custom path to store the cred/token files, when dealing with multiple mailboxes at the same time.
1. If its the first run, it will generate a token file and for all other run it will utilise that file and not ask for authentication
2. when i change the mail box, it tries to utilise the same token file for the other mailbox too and returns an error
We can't go authenticating everytime as it has to run in unattended mode
Could you please have a look & would be happy to hear from you at the earliest.
Hi, Where will the authentication key stored? For me its asking to authenticate all the time.
Hi, I am using the Modify Message Labels activity. When removing label 'UNREAD' it's working. But when I use add label. I get an error of 'An error occurred: Google.Apis.Requests.RequestError' Invalid Label even if the label is existing.
Thanks!
Hi Magali!!!, I write from Peru, I have some questions about API Activities for Gmail, I need some help. I want to read, send and create labels in a Gmail Account. I have follow all steps described in Resources Documents however the options about creation OAuth 2.0 Client changed in Google Console Developers. The options are Android, Chorme App, iOs, TVs and Limited Input Devices, Desktop App, Universal Windows Platform. So currently, option "Other" doesn't exist. If you have some screen about complete configuration in Gmail Scope activity updated it would be very useful for me. Thanks in advance Magali :)
Hi Jorge!
You can use the "Desktop App" category instead.
I recommend you also have a look at this project: https://connect.uipath.com/marketplace/components/google-gsuite. It's the official one for anything GSuite.
How to create new folder/Label in Gmail and how to move all mails to that folder.
To create a new label you can use the "Create Label" activity.
To then add labels to emails use the "Modify message labels" activity.
Folders are different. Moving from one folder to the other is not possible with these activities
Hi, it works great! I just wanted to ask,
Is there an option to reply to the email without creating a new one? Make a thread.
Thank you.
Hi Ramel,
This package https://connect.uipath.com/marketplace/components/google-gsuite will be easier to use for replies
Hello. I currently have an issue in capturing the email body because it contains HTML elements, list to be exact. How can I capture it? Thanks.
Hi, to capture the email body you need to use the "Message Body" output from the "Get message" activity. Alternatively, please check the "parts" property in https://developers.google.com/gmail/api/v1/reference/users/messages.
If this doesn't work, maybe the activity at https://docs.uipath.com/activities/docs/gsuite-get-mail-messages would be easier to use(it's inside the package UiPath.GSuite)
Hello. For the "modify message labels", what should be filled into "labels to add" and "labels to remove" fields? What specific format?
Let's say I want to add a label but remove none, since there are none.
Thanks a lot!
Hello,
Both fields should be lists of strings, with the elements in the list being the label id.
If you have nothing to remove then it should be an empty list
Great work on the activities!
I have one issue with getting labels: I receive this error when filling in the "result" field of the "get labels" activity (with ctrl + k, of course)
"Compiler error(s) encountered processing expression "gmailLabels". Reference required to assemby 'Google.Apis, Version=1.38.00, Culture=neutral, PublicKeyToken=4b01fa634db77ab' containing the implemented interface 'Google.Apis.Requests.IDirectResponseSchema.' Add one to your project."
Hi,
This means you need to add the namespace Google.Apis.
In imported namespace please add Google.Apis.
Great work on the activities!
I have one issue with getting labels: I receive this error when filling in the "result" field of the "get labels" activity (with ctrl + k, of course)
"Compiler error(s) encountered processing expression "gmailLabels". Reference required to assemby 'Google.Apis, Version=1.38.00, Culture=neutral, PublicKeyToken=4b01fa634db77ab' containing the implemented interface 'Google.Apis.Requests.IDirectResponseSchema.' Add one to your project."
Please add Google.Apis to imported namespaces
Hello,
How can i encode the mail message ? it doesn't work when using the different type of encoding such as UTF-8.
Thank you for advance
Hello,
Additional encoding options are not possible in this version.
What is your use case?
Technical
Version
1.0.68Updated
April 4, 2023Works with
Studio: 21.10 - 22.10
Certification
Silver Certified
Tags
Support
UiPath Community Support
Resources