Skip to main content
Question

Pipelines Outlook email question

  • October 22, 2020
  • 0 replies
  • 85 views

Greetings,

I'm working on a pipeline to import emails from Outlook into a table in Quick Base and I'm having trouble capturing the recipient(s). I think the Outlook connector is returning a list or collection of recipients and Pipelines doesn't know how to stuff that into a Text or EmailAddress field. Pipelines gives me a fairly obscure error:

Validation error: Incorrect template "{{a.to_recipients}}": issubclass() arg 1 must be a class

If my conjecture is correct, the question is then how to transform that list of recipients into text or even just capture the first item in the list. I tried using a Jinja's for loop construct:

{% for recipient in {{a.to_recipients}} %}
{% recipient.email_address.name %}
{% endfor %}

But Pipelines will not accept that in the mapping field. That's as far as I've gotten. Any help would be appreciated.



------------------------------
Rick Putnam
------------------------------
This topic has been closed for replies.

  • Author
  • Registered
  • October 22, 2020
I have a partial solution which is to write:

{{a.to_recipients[0].email_address.name}}

That captures the first recipient -- and for my current use case, that's enough. However, I'd still be happy to hear solutions for capturing all the recipients.

Thanks.

------------------------------
Rick Putnam
------------------------------