get storage service content (Integration function)

Prev Next

See also: get document content (Integration function)

The get storage service content (Integration function) function returns the content of a document uploaded to Lobster Data Platform / Orchestration if it is registered with the storage service specified by parameter a (storage service key) under the key value defined by parameter b (document id).

Parameter

Description

a

Storage Service Key: Identifier for a storage service from Lobster Data Platform / Orchestration.

b

Key value (document id) under which the document was registered by the service.

c

With the value true the document content is returned as a Base64 string, otherwise binary data.

What is a Storage Service?

Lobster Data Platform / Orchestration manages uploaded files ('documents') depending on the context via one of the following 'Storage Services'

Storage Service Key

Context

Entity in context

'Document' in context

Key value ('Document id')

Optional module?

mailAttachments

E-mails

E-mail created by the system

core:Mail

File attachments

(attachementEntry.content)

Internal ID of the mail attachment

(attachementEntry.id)

No (always installed)

documents

Documents

Document

doc:Document

Document content

(documentContent)

Internal ID of the document

(id)

Documents (DOC)

signedByImages

Tracking state

Tracking status entry

baseTS:TrackingStatusEntry

Recorded signature (graphic file)(signedByImage)

Internal ID of the tracking status entry

(id)

Tracking status (TS)

â–ºNOTEâ—„ The term 'document' is used in this context as a generic term that can refer, among other things, to the Documents managed in the document module of Lobster Data Platform / Orchestration. For the access to such Documents, the function get document content (Integration function) can be used alternatively, for which the Storage Service Key documents is virtually 'preset'.

The function get storage service content (Integration function) returns the content of a document uploaded to Lobster Data Platform / Orchestration, if it is registered with the storage service specified by parameter a (storage service key) under the key value defined by parameter b (document id).

Depending on parameter c the document content is returned either binary (false/Standard) or Base64 encoded string.

images/download/attachments/201674024/image2020-10-28_16-8-1-version-1-modificationdate-1747044194217-api-v2.png

â–ºNOTEâ—„

  • The document content is made available without consideration of role permissions, ownership and authorizations applicable for Lobster Data Platform / Orchestration, if the access is made by get storage service content (Integration function) function.

  • If no document with the document id addressed in parameter c exists at the time of the function call, the profile terminates with an error.

Parameter

Parameter

Description

Example

Note

a

Storage Service Key: Identifier for a Storage Service from Lobster Data Platform / Orchestration.

mailAttachments

The info box (above) lists the valid Storage Service Keys.

b

Key value (document id) under which the document was registered by the service.

4711

The info box (above) indicates how the key value is defined per Storage Service.

c

With the value true the document content is returned as Base64-string, otherwise binary data.

true

false

Base64 content can for example be used in XML documents to embed binary files as strings.The return of binary data returns the file content directly (like a download).

Example

A profile forwards a certain file attachment from an e-mail generated by Lobster Data Platform / Orchestration to another system via a suitable reply path.

images/download/attachments/201674024/image2020-10-28_16-9-26-version-1-modificationdate-1747044194213-api-v2.png

The attachedEntryId calculation field first determines the internal ID of the attachment to be accessed, e.g. via a Search or Tuple search defined with the SearchTask (Integration function) function for the core:Mail object.

â–ºNOTEâ—„ As the symbol for the field indicates, a fixed value was stored here, since details for determining the ID are irrelevant for the example.

In the content field, which is crucial for the output in the reply path, the get storage service content (Integration function) function calls the content for the determined internal ID:

  • The relevant Storage Service for e-mail file attachments is specified in the parameter a by the Storage Service Key mailAttachments.

  • The value from the target field attachedEntryId is transferred to the parameter b as document id, i.e. the previously determined internal ID.

  • The parameter c gets no assignment, as the file content should be returned directly ('binary' and not as Base64 code).