ResourceAttachment

A resource attachment [ResourceAttachment] is an attachment associated to an employee's consolidated resource profile.

XML

SOAP

REST

Database table

Object

ResourceAttachment

oaResourceAttachment

resource_attachment

Supported Commands

Add, Read, Modify, Delete

add(), read(), modify(), upsert(), delete()

The ResourceAttachment object has the following properties:

XML / SOAP

Database

Description

attachment_id

attachment_id

The attachment record associated with this document.

created

created

[Read-only] Time the record was created. See Date Fields.

id

id

[Read-only] Unique ID. Automatically assigned by OpenAir.

latest_attachment_id

latest_attachment_id

ID of the latest attachment from the attachment table.

type

type

[Read-only] The document type. Must be either "CV" or "AVATAR".

updated

updated

[Read-only] Time the record was last updated or modified. See Date Fields.

userid

user_id

[Required] The ID of the user to whom this attachment belongs. The user must exist, must not be marked as deleted and must be active.

Usage Guidelines

Review the following guidelines:

  • A resource can only have one attachment of each supported type. The combination of type and userid must be unique.

  • Adding an attachment file as a resource attachment is a two-step process:

    1. Add a resource attachment object.

    2. An an attachment and set the owner_type value to ResourceAttachment and the owner_id to the internal ID of the resource attachment added in the first step. See Attachment.

    For an XML API sample code, see Sample Code — Adding CV as Attachment to a Resource Profile.