Attachments as retrieveData() return values

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:1分
  • Sometimes, it is preferable be return an attachment from retrieveData(). The logic to create and/or retrieve an attachment is implementation-specific, but after the attachment is known, its information can be returned.

    To provide an attachment, retrieveData() returns an object like:

    {
           contents: "attachment-sys-id",
           contentType: "sys_attachment"
    }
    An example that extends on the previous example, but saves the response body of the REST Message to the integration process record follows. It then returns that attachment identifier as the contents of the return object.
    図 : 1. Return attachment from retrieveData
    Script with attachment as retrieveData return value