rbv_api.setBinaryFieldValue()

Purpose

This Object Script method sets the value of a file upload field using a base-64 encoded string. This method works only with native Platform objects.

Formulas used in Object Script triggers can include other API methods and regular Platform template functionality, such as loops. Object Script methods have no effect if called outside of update triggers.

Syntax

rbv_api.setBinaryFieldValue(objName, Id, fieldname, encodedValue, contentType, fileName)

Parameters

objName

Integration name of object

Id

ID of record to modify

fieldName

Integration name of the field to update

encodedValue

Base-64 encoded content of value to be set

contentType

MIME content type

fileName

Name of file to be stored

Return value

None

Permissions required

Edit permission for the selected object type.