ResourceAttachment
A resource attachment [ResourceAttachment] is an attachment associated to an employee's consolidated resource profile.
| 
                   —  | 
                
                   XML  | 
                
                   SOAP  | 
                
                   REST  | 
                
                   Database table  | 
              
|---|---|---|---|---|
| 
                   Object  | 
                
                   
                      | 
                
                   
                      | 
                
                   —  | 
                |
| 
                   Supported Commands  | 
                
                   —  | 
                
                   —  | 
              
The ResourceAttachment object has the following properties:
| 
                   XML / SOAP  | 
                
                   Database  | 
                
                   Description  | 
              
|---|---|---|
| 
                   
                      | 
                
                   
                      | 
                
                   The attachment record associated with this document.  | 
              
| 
                   
                      | 
                
                   
                      | 
                
                   [Read-only] Time the record was created. See Date Fields.  | 
              
| 
                   
                      | 
                
                   
                      | 
                
                   [Read-only] Unique ID. Automatically assigned by SuiteProjects Pro.  | 
              
| 
                   
                      | 
                
                   
                      | 
                
                   ID of the latest attachment from the attachment table.  | 
              
| 
                   
                      | 
                
                   
                      | 
                
                   [Read-only] The document type. Must be either "CV" or "AVATAR".  | 
              
| 
                   
                      | 
                
                   
                      | 
                
                   [Read-only] Time the record was last updated or modified. See Date Fields.  | 
              
| 
                   
                      | 
                
                   
                      | 
                
                   [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
typeanduseridmust be unique. - 
              
Adding an attachment file as a resource attachment is a two-step process:
- 
                  
Add a resource attachment object.
 - 
                  
An an attachment and set the
owner_typevalue toResourceAttachmentand theowner_idto 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.
 -