--- title: "Get-MediaLogEntry" slug: "scripting-get-medialogentry" updated: 2026-01-22T13:40:48Z published: 2026-01-22T13:40:48Z canonical: "help.agilityblue.com/scripting-get-medialogentry" --- > ## 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-MediaLogEntry ## Summary Retrieves an existing media log entry. ```powershell Get-MediaLogEntry    -Id ``` Returns a [media log entry](https://apidocs.agilityblue.com/#1155407a-21bd-4c58-a177-ce5a6af2789c) object. ## Parameters | Parameter | Type | Required? | Notes | | --- | --- | --- | --- | | Id | Int32 | Yes | The media log entry id. | ## Examples ### Get an existing media log entry This example retrieves a specific media log entry and outputs it as JSON. ```powershell # Retrieve a specific media log entry by id $data = Get-MediaLogEntry -Id 53 Write-Output "Retrieved media log entry $($data.MediaLogEntryId)" # Convert the media log entry to output as JSON $jsonOutput = $data | ConvertTo-Json -Depth 10 # For debug purposes, convert the data to output as JSON so we can see all the fields Write-Output "" Write-Output "JSON Results:" $jsonOutput = $data | ConvertTo-Json -Depth 10 # Output the data Write-Output $jsonOutput ``` Execution results: ```json Retrieved media log entry 53 JSON Results: {  "MediaLogEntryId": 53,  "MediaTypeId": 9,  "MediaTypeName": "Computer",  "ProjectId": null,  "Project": null,  "ProjectDescription": null,  "TaskId": null,  "Task": null,  "TaskName": null,  "ClientId": 5,  "Client": null,  "ClientName": "Gamma Tech",  "ClientReference": "5001",  "MatterId": 8,  "Matter": null,  "MatterName": "Gamma Tech v. Zhonghua Mfg.Group",  "MatterReference": "ABC000",  "Reference": null,  "Location": "MN",  "Custodian": "See Custodian Reference",  "Notes": null,  "From": "John T.",  "To": "Mark S.",  "Date": "2023-12-15T19:29:43.968+00:00",  "Fields": [    {      "FieldId": 23,      "ObjectId": 3,      "DataTypeId": 8,      "DataTypeName": "Single Choice",      "Label": "Media Status",      "IsRequired": false,      "Position": 0,      "Guid": 1500309138663,      "IsSystemField": false,      "IsReferenceValue": false,      "DefaultValue": "In Storage\nReturned \nDestroyed",      "CopyPreviousValueOnSaveAndNew": false,      "Value": {        "ObjectFieldValueId": 2060,        "ObjectFieldId": 23,        "ObjectId": 3,        "PrimaryKeyId": 53,        "ValueAsString": "In Storage",        "ValueAsBoolean": null,        "ValueAsNumber": null,        "ValueAsDecimal": null,        "ValueAsDate": null,        "ReferenceObject": null      },      "ReferenceObject": null    },    {      "FieldId": 76,      "ObjectId": 3,      "DataTypeId": 10,      "DataTypeName": "Reference",      "Label": "Custodian",      "IsRequired": false,      "Position": 1,      "Guid": 8744623462400,      "IsSystemField": false,      "IsReferenceValue": false,      "DefaultValue": null,      "CopyPreviousValueOnSaveAndNew": false,      "Value": {        "ObjectFieldValueId": 2180,        "ObjectFieldId": 76,        "ObjectId": 3,        "PrimaryKeyId": 53,        "ValueAsString": null,        "ValueAsBoolean": null,        "ValueAsNumber": null,        "ValueAsDecimal": null,        "ValueAsDate": null,        "ReferenceObject": {          "ObjectFieldReferenceObjectInstanceId": 327,          "ObjectFieldValueId": 2180,          "ObjectId": 14,          "Object": null,          "PrimaryObjectId": 3,          "PrimaryKeyId": 53,          "KeyType": "Int32",          "DisplayFormat": "%Name%",          "IsSystemObject": false,          "Name": null,          "NumberOfValues": 1,          "Values": [            {              "ObjectFieldReferenceObjectInstanceValueId": 245,              "ObjectFieldReferenceObjectInstanceId": 327,              "KeyAsString": null,              "KeyAsInteger": 5,              "KeyAsLong": null,              "Value": "Gene Anderson"            }          ]        }      },      "ReferenceObject": null    }  ],  "CreatedByFullName": "Service Account",  "CreatedById": "410e109b-6ff5-4442-9670-cd5e3cd82a7f",  "CreatedOn": "2023-12-15T19:29:53.2273997+00:00",  "CreatedBy": null,  "LastUpdatedByFullName": "Max Miller",  "LastUpdatedById": "25a34a2f-e3d8-4690-88f5-6b399cf88c4c",  "LastUpdatedOn": "2024-04-18T11:32:32.1680893+00:00",  "LastUpdatedBy": null } ```