Start a conversation

Retrieving the Archival Information of a Message

Added in 24.11.

For admin users and members or anonymous users, use the message and message archival data query to retrieve archived message information, respectively.

Query for Admin Users

As an admin, use the query below to retrieve the archival information for a message (ID: 435).

{
  message(id:"message:435"){
    ...on ForumTopicMessage {
      archivalData {
        archivedDate
        suggestedUrl
      }
    }
  }
}

The GraphQL response:

{
  "data": {
    "message": {
      "archivalData": {
        "archivedDate": "2024-11-15T13:59:12.000+05:30",
        "suggestedUrl": "https://[YOUR COMMUNITY DOMAIN/EXTERNAL URL]/"
      }
    }
  }
}

Query for Community Members and Anonymous Users

As a community member, use the query below to retrieve the archival information for a message (ID: 435).

{
  messageArchivalData(messageId:"message:435"){
        archivedDate
        suggestedUrl
        archived
    }
}

The GraphQL response:

{
  "data": {
    "messageArchivalData": {
      "archivedDate": "2024-11-15T13:59:12.000+05:30",
      "suggestedUrl": "https://[YOUR COMMUNITY DOMAIN/EXTERNAL URL]/",
      "archived": true
    }
  }
}
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. ATLAS

  2. Posted
  3. Updated

Comments