--- title: "Get-EmailMessageContact" slug: "scripting-get-emailmessagecontact" tags: ["Enterprise Only"] updated: 2025-07-16T20:27:02Z published: 2025-07-16T20:27:02Z canonical: "help.agilityblue.com/scripting-get-emailmessagecontact" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.agilityblue.com/llms.txt > Use this file to discover all available pages before exploring further. # Get-EmailMessageContact ## Summary Retrieves an existing email message contact. ```powershell Get-EmailMessageContact    -Id ``` Returns an [email message contact](https://apidocs.agilityblue.com/#e8ca028d-fa73-47b9-82c9-4a1bf6f50278) object. ## Parameters | Parameter | Type | Required? | Notes | | --- | --- | --- | --- | | Id | Int32 | Yes | The email message contact id. | ## Examples ### Get an existing email message contact This example retrieves a specific email message contact and outputs it as JSON. ```powershell # Retrieve a specific email message contact by id $emailMessageContact = Get-EmailMessageContact -Id 1 Write-Output "Retrieved email message contact $($emailMessageContact.EmailMessageContactId)" # Convert the email message contact to output as JSON $jsonOutput = $emailMessageContact | ConvertTo-Json -Depth 10 # For debug purposes, convert the emailMessageContact to output as JSON so we can see the available fields Write-Output "" Write-Output "JSON Results:" $jsonOutput = $emailMessageContact | ConvertTo-Json -Depth 10 # Output the email message contact Write-Output $jsonOutput ``` Execution results: ```plaintext Retrieved email message contact 1 ``` JSON results: ```json {  "EmailMessageContactId": 1,  "EmailMessageId": 1,  "EmailMessage": {    // Email message fields removed  },  "ContactId": 1,  "ContactFullName": "Max Miller",  "ContactEmailAddress": "mmiller@agilityblue.com",  "ContactNameAndEmailAddress": "Max Miller ",  "Contact": {    // Contact fields removed  },  "RelationshipTypeId": 1,  "RelationshipTypeName": "To",  "RelationshipType": null } ```