rbf_setBinaryData
Purpose
This function is used to upload selected files in the file and image upload fields for a specific Platform record.
The current user must have Editpermission on the selected object type to run this API.
Syntax
rbf_setBinaryData(objName, id,
fieldName)
Parameters
objName
The object integration name.
id
ID of the selected record
fieldName
Integration name of the field to update
- This API does not accept the file path due to security reasons. To upload the files and images, select the files from the UI and execute the API.
- This API is supported in portals as well.
Example
The following example sets the selected value to upload files:
rbf_setBinaryData("room", {!id}, "suite_image");