cancel
Showing results for 
Search instead for 
Did you mean: 

Facing issue in send mail using GMAIL API v1.

ChiragPatel1
Level 4

Hi,

I have downloaded Gmail API skill and want to send mail using it.

This is the what I have configured in Common Authentication.
8252.png
In Action I am calling gmail.users.messages.send

I am getting below Internal Exception:
8253.png

Can anyone please help me to resolve this Exception or can let me know what is the issue ?

Thank you,
Chirag Patel.



------------------------------
Chirag Patel
Ignite IPA.
------------------------------
8 REPLIES 8

PeterLacken
Level 7
Hi,

the scope value does not seem right. See this for correct values

https://developers.google.com/gmail/api/auth/scopes

peter

------------------------------
PeterLacken
Ren Røros Intelligent Automation
Peter.Lacken@rria.no
http://www.rria.no
------------------------------

Hi Peter,

I tried using below Scope :
https://www.googleapis.com/auth/gmail.send

But I am still getting the same error.

Can you let me know which will be the right Scope to be used ?

------------------------------
Chirag Patel
------------------------------

Chirag,

Are you trying to use the GMail skill with a personal GMail account? If so, that may not work. I believe the GMail API is restricted, by Google, to Google Workspace accounts.

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi
Eric

I have the same issue, sending email and is not personal gmail account, There is not definitely alternative (OAuth 2.0 type) to send emails for users who do not use POP / IMAP, as if it can be done with google spreadsheets, there are many users of google applications WOW


------------------------------
alirio materano
Consulting
SOAINT
Europe/London
------------------------------

Hi Eric,

I am not using a personal Gmail account. I am using a business account and workspace to send emails.
I am having the same issue and am unable to send emails using Blue Prism Gmail API Skill.

Thank you,
Chirag Patel
(Ignite IPA)

------------------------------
Chirag Patel
------------------------------

@ChiragPatel1,

Remind me, are you trying to authenticate with a service account or a specific user account? We're working on an example process that shows how to use a service account to connect to GMail on behalf of another user (delegated user) and perform various actions. We should have it posted to the DX later today. Of course, use of this example depends entirely on the creation/configuration of a service account in your Google Workspace environment.

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi Eric,

Where can I find the example process on DX?
any updates on GMAIL API, as we still face the same problem.

Thank you,
Chirag Patel.

------------------------------
Chirag Patel
------------------------------

Hello @ChiragPatel1,

Apologies for falling behind on this. We've just updated the asset page on the DX to include the new example process. You can find a link for it under the documentation section.

https://digitalexchange.blueprism.com/dx/entry/9648/solution/gmail-api-v1-2

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------