Skip to main content
Best answer

How can I add user email on the authenticated account, "Connection Label" does not work ?


alexb
Forum|alt.badge.img

I’m working on developing a Zapier integration, and have a question regarding the “connection label”.

 

I read through the docs here, but I can’t seem to get it to work (so it displays the users email).

 

Currently I have this in the connection label:

{{bundle.inputData["https://21risk.com/email"]}}

I would expect this to display the email of the authenticated user, based on this response from my test API call:

{
  "https://21risk.com/email": "ab@21risk.com",
}

 

But I don’t see anything here:

Did I misunderstand something from the documentation here?

Best answer by ikbelkirasanBest answer by ikbelkirasan

@alexb - In the test step of the authentication, make sure to return the email address that you want to use as a connection label. So, if you put it in a key named email then just set the connection label to {{email}}

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

12 replies

AndrewJDavison_Luhhu
Forum|alt.badge.img+10

Tagging in @ikbelkirasan to help here.


ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • Answer
  • January 8, 2021

@alexb - In the test step of the authentication, make sure to return the email address that you want to use as a connection label. So, if you put it in a key named email then just set the connection label to {{email}}


alexb
Forum|alt.badge.img
  • Author
  • Tinkerer
  • 16 replies
  • January 8, 2021

Thanks for helping out. Our app is using oAuth - what do you mean by the last auth step?

a bit new to zapier - so thanks for the help!


ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • January 8, 2021

@alexb - No problem! Feel free to ask questions.

Actually, I said in the test step, not the last. This one is used to verify that the access token is valid and usually it should return info about the authenticated user. You can map a field from the output of this step to be used as the connection label.


alexb
Forum|alt.badge.img
  • Author
  • Tinkerer
  • 16 replies
  • January 8, 2021

Ahhh that makes sense! Sorry for not picking up that important detail 🧐

 

Im working towards the review process - I love the “are you ready” tests 😎


ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • January 8, 2021

Awesome! Good luck with that :sunglasses:


alexb
Forum|alt.badge.img
  • Author
  • Tinkerer
  • 16 replies
  • January 8, 2021

Hi @ikbelkirasan - sorry to bother you again. 

But I can’t get it to work. 

Is this what you mean?

 

Or did I misunderstand something?


ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • January 8, 2021

@alexb - Yeah, that’s what I meant. I’ve just made a test app and it worked fine with fake data.

 

 

 

 

Try adding a new connection and see if it works.

 


alexb
Forum|alt.badge.img
  • Author
  • Tinkerer
  • 16 replies
  • January 8, 2021

Adding a new account did the trick - thanks!

Do you know if I somehow can get the e-mail for the existing connections? Or should I just delete/create?

 


ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • January 8, 2021

Great!

Well, I’m not sure but you might have to recreate them. Have you tried reconnecting them?


alexb
Forum|alt.badge.img
  • Author
  • Tinkerer
  • 16 replies
  • January 8, 2021

I will just delete and recreate, thanks for the help :) 


ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • January 8, 2021

My pleasure! :)