Share via

How to use REST API in ADF to get Gmail API token

Japnam Singh 71 Reputation points
Sep 16, 2022, 3:23 PM

241917-adf2.png241971-adf3.pngHi,

I am trying to use rest connector in ADF to get gmail API messages using Oauthv2 authentication type and having issues did anyone tried it?

Error -> Failed to get access token from your token endpoint.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,355 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,236 Reputation points
    Sep 19, 2022, 5:30 PM

    Hello and welcome to Microsoft Q&A @Anonymous

    Can you try using a Web Activity first? When the goal is getting a token, I always use the Web activity. It looks like you are using a Dataset, and so probably lookup or copy.

    Is the desired process:
    Use OAuth2 to fetch token -> use token to get email

    I suspect what is happening is
    Providing OAuth2 credentials to get email, skipping token.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.