Public/Set-ZomentumEmailLog.ps1

Function Set-ZomentumEmailLog {
    <#
        .SYNOPSIS
            Updates a Email Log via the zomentum API.
        .DESCRIPTION
            Function to send an EmailLog creation request to the Halo API
        .OUTPUTS
            Outputs an object containing the response from the web request.
    #>

    [CmdletBinding()]
    Param (
        # Object containing properties and values used to Update a new action.
        [Parameter( Mandatory = $True )]
        [Object]$EmailLog
    )
    try {

        $Result = New-ZomentumPOSTRequest -Object $EmailLog -Endpoint 'activities/sales/email_log/' -Update
        Return $Result

    } catch {
        Write-Error "Update Email Log Failed $_"
    }
}