Creating label in gmail

I am creating a label in n8n using gmail create a label . While executing its giving error and workflow stops running and the error is :


this is the error but still in gmail its creating label eg :“xyz” . There is no label with same name. I dont understand why its giving error and stooping the flow.
and this is the if condition:
{{ $json.labels[2] && $json.labels[2].name === “unread” && $json.labels[3] && $json.labels[3].name === “xyz”; }}
before executing the create a label node.

Quick questions:

  1. Is label creation connected to the false branch of the If node?
  2. Are you sure that the label doesn’t exist generally under your gmail account?

Thankyou i can create label now.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.