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

Japnam Singh 71 Reputation points
2022-09-16T15:23:04.067+00:00

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.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,161 Reputation points
    2022-09-19T17:30:31.96+00:00

    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.