question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Message.LabelIds does not attach my label to the message

See original GitHub issue

After sending a message using the Gmail API, I’ve noticed that the label I created was not being attached to the message. I created the label using the Gmail API in C# and saved the label.Id in my database for later use. The ID was something like “Label_29” even though the name of the label was something else. I added “Label_29” to my message.LabelIds list before sending the message, but the label was not added to the message. Even after replying the the message and seeing the reply, I did not see the desired label attached to the message within Gmail. Should I be using the LabelId or the label Name within the LabelIds list?

I will note that I sent the message via Google BatchRequest in C#, if that makes any difference.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
markentinghcommented, Oct 2, 2020

If you’d like to stay in the loop, I submitted the issue https://issuetracker.google.com/issues/169874640

0reactions
markentinghcommented, Oct 2, 2020

Thank you for your help. I will try to get in touch with the Gmail API team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create labels to organize Gmail - Computer
Label messages in your inbox · On your computer, go to Gmail. · Select the messages. · At the top, click Labels. ·...
Read more >
Apply attachment's sensitivity label to Outlook message
Apply attachment's sensitivity label to Outlook message. We're using Sensitivity Labels to classify content in our organization.
Read more >
Labels not showing up in message list - Gmail Community
Yes, all the labels are set to show in both the label list and the message list. I have checked this in both...
Read more >
How to use Gmail labels to tame your inbox
On the Gmail desktop website, the easiest way to create a label is to click the label icon in the toolbar at the...
Read more >
How to use Gmail Labels - Tutorial for Beginners (2022)
Using labels in Gmail is a great way to organize email in your inbox. ... the color of labels 02:57 Adding labels to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found