Agnostic Guides
...
Developers Guide
Useful / Common Link Enterpris...

Send Metadata

2min

Sending metadata to a file ID or folder ID directly can be accomplished via the below method.

Note that if the metadata template is not yet applied (in the case of Box), it will be added (note: for Box more than one metadata template can be applied).

/dflow/cl_docmanager_helper=>send_metadata_update

Parameters

Parameter

Description

Sample Value

IV_CALLER

Describes who is calling the method. Logged in the Link Enterprise API Gateway as such.

/dflow/cl_common_super=>

gc_caller_docmanager_custom

IV_SAP_OBJECT

ArchiveLink SAP Object

BKPF

IV_AR_OBJECT

ArchiveLink doctype

ZINVOICE01

IV_OBJECT_ID

ArchiveLink SAP key. Note this can be a compound key for certain SAP objects or line item/company code level.

300019000000012020

IV_ARC_DOC_ID

CMS ID to update

{FC2F11EF-9AB9-C08E-86B0-74E484400000} or 124057761318

IV_LABEL

Cosmetic value logged in the Link Enterprise API gateway for reporting and tracking purposes.

MIGRATE_DIRECT_UPDATE

IV_FOLDER_METADATA

Boolean to indicate if update is to a folder.

X = folder EMPTY = file

IT_METADATA

Table of key value pairs of your CMS properties and the values to update

sapCompanyCode 3000

EV_DOCUMENT_UPDATED

Flag to indicate whether the file or folder was updated successfully.



ET_RETURN 

Table that indicates a success of an error. The TYPE field will contain an ‘S’ or ‘E’ respectively and the MESSAGE field will contain information in the case of an error.