Table of Contents

Method GetJobAttachmentFileNames

Namespace
Skyline.DataMiner.Net.Jobs
Assembly
SLNetTypes.dll

GetJobAttachmentFileNames(JobID)

Retrieves the names of the files attached to the job with ID jobID.

public List<string> GetJobAttachmentFileNames(JobID jobID)

Parameters

jobID JobID

The ID of the Job to retrieve the attachment names for.

Returns

List<string>

The names of the attachments. An empty list if the jobID does not have attachments.

Remarks

Please note the following regarding job attachments:

  • The size limit of job attachments depends on the Documents.MaxSize setting in the file MaintenanceSettings.xml. By default, this is 20 MB.
  • Deleting a job will remove all attachments of this job from the system. These cannot be recovered afterwards.
  • Managing job attachments requires the Jobs > UI available and Jobs > Add/Edit user permissions.
  • Job attachments are backed up with the backup option All documents located on this DMA.
  • Job attachments are synced in a cluster.

Available from DataMiner 10.0.5 (RN 24791) onwards.

Exceptions

ArgumentNullException

If jobID is null.

DataMinerException

InnerException will be an ArgumentException if the job with jobID could not be found.

DataMinerSecurityException

The user does not have read permissions on the specified job.