I am using the Gmail node, with Service account and impersonation. It works fine.
But if i use an expression to set the impersonate user value, it stays on the first row value and doesn’t iterate.
May this be a bug ? Is there something I am missing here ?
Credentials are only loaded once, no matter how many items you’re passing on to the node. So if you want to use different credentials for each item, my suggestion would be to split up your data in batches (with a size of 1 item per batch) using the Split In Batches node.
A generic workflow demonstrating the idea would be this one:
The credentials contain an expression of {{$json["address"]}}, reading the address field:
When running the workflow you can see that each request uses different credentials and sends them to my webhook.site URL:
Hello @Maximilien,
Do you mind sharing an example of this part of your workflow? I’m intending to do something very similar but I can’t seem to get through it.
Thanks.