Skip to content

Get attachment

Overview

Retrieve specific attachment metadata using the sys id.

Path parameters

N/A - doesn't support standard implementation.

Optional query parameters

N/A

Required query parameters

N/A

Examples

package main

import (
    "context"

    attachmentapi "github.com/michaeldcanady/servicenow-sdk-go/attachment-api"
)

func main() {
    // Initialize credentials and client

    config := &attachmentapi.AttachmentItemRequestBuilderGetRequestConfiguration{
        // Optional configurations
    }

    response, err := client.Now2().Attachment2().ByID("{sys_id}").Get(context.Background(), config)
    if err != nil {
        log.Fatal(err)
    }

    // Process response
}