Updating User Defined Table
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Description: Inserts or updates a single value in a UDT using the upsert function, requiring table, mainKey, and secondaryKey to identify the record, and value for the data.
Syntax:
pepperi.api.userDefinedTables.upsert({
table: "<tableName>",
mainKey: "<mainKey>",
secondaryKey: "<secondaryKey>",
value: "<value>"
});
Example:
pepperi.api.userDefinedTables.upsert({
table: "myTable",
mainKey: "Item123",
secondaryKey: "Category124",
value: "my value"
});
Returns:
{
"success": true
}