﻿<h3>Save email(s) into existing record</h3>


<pre><code class="bash">
    # Here is a curl example
    curl \
    -X POST "http://localhost:8888/api/PropertyCard/SaveEmailsIntoExistingRecord" \
    -H "Authorization: {token}" \
    -H "Content-Type: application/json" \
    -d '[{
            "email_id":"test",
            "internal_message_id":"test",
            "conversation_id":"test",
            "object_id": 123,
            "record_id": 123,
            "folder_id":123
            "subject":"test",
            "sender_name":"test"
            "received_time":"10/10/2026",
            "email_size":23,
            "has_attachments":true,
            "sent_to":"test",
            "sent_date":"10/10/2026",
            "email_data":[],
        }]'
</code></pre>

<p>
    This method allows you to save email data across multiple objects in the system.
</p>
<p>
    To save email information into one or more existing object records, make a POST request to the following endpoint
    :<br />
     <code class="higlighted break-word">http://localhost:8888/api/PropertyCard/SaveEmailsIntoExistingRecord</code>
</p>
<br />

<pre><code class="json">
    Result example :
    [
        {
            "Success": "boolean",
            "Message": "string",
            "Data": object,
            "CustomAction": Dictionary&lt;object, object&gt; ,
            "CustomAttributes":Dictionary&lt;object, object&gt;
        }
    ]
</code></pre>

<h4>From Body Parameters</h4>
<table class="central-overflow-x">
    <thead>
        <tr>
            <th>Field</th>
            <th>Parameter Type</th>
            <th>Type</th>
            <th>Description</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>email_id</td>
            <td>body</td>
            <td>string</td>
            <td>
                Email Id
            </td>
        </tr>
        <tr>
            <td>internal_message_id</td>
            <td>body</td>
            <td>string</td>
            <td>
                Internal Message Id
            </td>
        </tr>
        <tr>
            <td>conversation_id</td>
            <td>body</td>
            <td>string</td>
            <td>
                Conversation Id
            </td>
        </tr>
        <tr>
            <td>object_id</td>
            <td>body</td>
            <td>long</td>
            <td>
                Object Id.
            </td>
        </tr>
        <tr>
            <td>record_id</td>
            <td>body</td>
            <td>long</td>
            <td>
                Record Id
            </td>
        </tr>
        <tr>
            <td>folder_id</td>
            <td>body</td>
            <td>long</td>
            <td>
                Folder Id. You can get from another method
                (http://localhost:8888/api/Objects/EmailFolders).
            </td>
        </tr>
        <tr>
            <td>subject</td>
            <td>body</td>
            <td>string</td>
            <td>
                Email subject
            </td>
        </tr>
        <tr>
            <td>sender_name</td>
            <td>body</td>
            <td>string</td>
            <td>
                Sender Name
            </td>
        </tr>
        <tr>
            <td>received_time</td>
            <td>body</td>
            <td>string</td>
            <td>
                Received Email Date
            </td>
        </tr>
        <tr>
            <td>email_size</td>
            <td>body</td>
            <td>integer</td>
            <td>
                Email Size
            </td>
        </tr>
        <tr>
            <td>has_attachments</td>
            <td>body</td>
            <td>boolean</td>
            <td>
                Email attachments
            </td>
        </tr>
        <tr>
            <td>sent_to</td>
            <td>body</td>
            <td>string</td>
            <td>
                Sent To
            </td>
        </tr>
        <tr>
            <td>sent_date</td>
            <td>body</td>
            <td>string</td>
            <td>
                Sent Date
            </td>
        </tr>
        <tr>
            <td>email_data</td>
            <td>body</td>
            <td>byte[]</td>
            <td>
                Email in byte, eml content in byte.
            </td>
        </tr>
        <tr>
            <td>Authorization</td>
            <td>header</td>
            <td>string</td>
            <td>Add Authorization header token</td>
        </tr>
    </tbody>
</table>
