## Syntax

`MSG_PARSE(file, [extract_multiline_headers: FALSE], [single_body: TRUE])`

## Usage examples

|     |     |
| --- | --- |
| Input | 1<br>{<br>2<br>"my_action":{<br>3<br>"message":{<br>4<br>"file_upload_1":{<br>5<br>"contents":"BASE64Encoded.msgfilecontents",<br>6<br>"display_logo":true,<br>7<br>"name":"SampleMSGFile.msg",<br>8<br>"type":"application/vnd.ms-outlook"<br>9<br>}<br>10<br>}<br>11<br>}<br>12<br>}<br>Copy |
| Formula | `MSG_PARSE(BASE64_DECODE(my_action.message.file_upload_1.contents))` |
| Output | 1<br>{<br>2<br>"attachments":[],<br>3<br>"body":"<html>\\n<body></body>\\n</html>\\n\\n",<br>4<br>"cc":[],<br>5<br>"date":"2017-06-01T15:24:31+00:00",<br>6<br>"from":"from@domain.com",<br>7<br>"headers":{<br>8<br>"Content-Type":"multipart/alternative;boundary=\"----_=NextPart_001_00c81914.63ca02d3\"",<br>9<br>"Date":"Thu,01Jun201715:24:31+0000",<br>10<br>"From":"from@domain.com",<br>11<br>"Message-ID":"c58b1b52f61f4789ba40339c6e993440",<br>12<br>"Mime-Version":"1.0",<br>13<br>"Subject":"creatinganoutlookmessagefile",<br>14<br>"Thread-Topic":"creatinganoutlookmessagefile",<br>15<br>"To":"to@domain.com",<br>16<br>"X-Unsent":"1"<br>17<br>},<br>18<br>"message_id":"c58b1b52f61f4789ba40339c6e993440",<br>19<br>"subject":"creatinganoutlookmessagefile",<br>20<br>"to":[<br>21<br>"to@domain.com"<br>22<br>] <br>23<br>}<br>Copy |

## Sample Actions

### Event Transform

My Action

### Event Transform

MSG_PARSE

### Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.
