Update outbound Attachment Info

The function below calls the REST request to update attachment information. Before sending the information to the endpoint system (Service Anywhere), new information should be merged to the existing one.

Out-of-box function:

CaseExchange_SAWUtil.updateAttachmentInfo

The function has the following parameters:

  • mapObj: Final Service Manager value object after field mapping and value mapping.
  • sm: Temporary Service Manager value object after copying basic data from end point according to field mapping.
  • ep: Original value object from the end point.
  • context: Context of the SMIS task. You can get a specific value by using the context['internalId'] syntax.
  • param: All parameters defined in SMIS configuration. You can get a specific parameter value by using the param['object'] syntax.

For more information about these parameters, see Placeholder objects.

The function returns the following result:

Array: Array of the CEAttachmentInfo object