Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Retrieving email body

Hi all,
In TOS 4.2.2 I am trying to retrieve the body in an email (which could also have one or more attachments). In tFileInputMail I tried different Mail parts ("Body", "From", "Date", "Subject") as listed in the manual, but none of these seem to work. The result is always an empty string.
Anybody know how I can retrieve the body of the following .mail file (see below)? Thanks in advance!
Regards,
Robert

X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by srvaex02.test.nl
id <01CC3D56.2ABC26CE@srvaex02.test.nl>; Fri, 8 Jul 2011 12:02:38 +0200
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----_=_NextPart_001_01CC3D56.2ABC26CE"
Content-class: urn:content-classes:message
Subject: Test
Date: Fri, 8 Jul 2011 12:02:38 +0200
Message-ID: <0C3E49EE55E1C04989ECF5B7A32B74E8AD4000@srvaex02.test.nl>
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
Thread-Topic: Test
thread-index: Acw7zLLI3Fsyw2aTSgC0P0GZP+/nmAAADncAAGJJGVA=
From: "Robert" <Robert@test.nl>
To: "Robert" <Robert@test.nl>
This is a multi-part message in MIME format.
------_=_NextPart_001_01CC3D56.2ABC26CE
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
=20
... Lots of body text ...

------_=_NextPart_001_01CC3D56.2ABC26CE
Content-Type: application/octet-stream;
name="test20110706130529.xml"
Content-Transfer-Encoding: base64
Content-Description: test20110706130529.xml
Content-Disposition: attachment;
filename="test20110706130529.xml"
...Attachment data...
------_=_NextPart_001_01CC3D56.2ABC26CE--
Labels (3)
1 Reply
alex2020
Contributor
Contributor

I'm answering because I faced the same issue related to retrieving email's body and there's no proper answers at the forum or I didn't find them.

 

I retrieve the body using the tFileInputMail object. The Email parts that are expected for the Body is "body" (check camel case) with MultiValue option checked.

0683p000009M8M3.png

 

It worked for me.