User Manual

10.04.2024

MANUAL

Developer Function: Server Script: items.Update

Overview

Update the specified record.

Syntax

items.Update(recordId, data)

Parameters

Parameter Type Required Description
recordId object Yes Specify the record ID of the target record
data string Yes Specify the update content in JSON format

Return Value

If the record is updated, true is returned; if not, false is returned.

Usage Example 1

In the example below, the record title with record ID 123 is updated to "Change Title" and ClassA is updated to "Change ClassA".

JavaScript
const data = {
    Title: 'Change Title',
    ClassHash: {
        ClassA: 'Change ClassA'
    }
};
items.Update(123, JSON.stringify(data));

Usage Example 2

In the example below, the record is updated with the specific user permissions. Please write the API key of a user with write permissions in ApiKey.

JavaScript
let data = {
    ApiKey: 'xxxxx...',
    Title: 'Document management software sales',
    ClassHash: {
        ClassA: 'Software Sales'
    },
    NumHash: {
        NumA: 750000
    }
};
items.Update(123, JSON.stringify(data));

Notes

This is a method used in "「Server Script」". It cannot be used in "「Script」".

Manage Table: Server scriptExecution Timing for Each ObjectItems Object

このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.