JS Client API
Search…
Getting Started
Rule Engine Unique Functions
Custom Form Window Functions
Known Issues
Use Cases & Code Samples
Retrieving Data
Retrieving Standard Resources
Retrieving User Defined Tables
Retrieving Attachments
Retrieving Items in Transaction Scope
Retrieving Transaction Lines
ADAL
Updating Data
Adding Objects to Standard Resources
Updating Standard resources
Updating User Defined Table
Updating Items in Transaction Scope
Adding Transaction Lines
Removing Transaction Lines
Powered By
GitBook
Updating Standard resources
Update multiple objects by unique keys
Returns an updated list
Only
UUID
is currently supported as a key
Supported resources:
accounts, transactions,
activities, transactionLines.
from CPI 15.85 supports also :
contacts.
Example:
1
pepperi
.
api
.
activities
.
update
(
2
{
objects
:
[
3
{
UUID
:
"tgfb523e-74ac-4041-8bb1-a76a3b5e78f5"
,
TSAMyComment
:
"ABC"
},
4
{
UUID
:
"aefb523e-74ac-4041-8bb1-a76a3b5e78h6"
,
TSAMyComment
:
"DEF"
}
5
]})
Copied!
Returns a response object with the list of updated objects as following:
1
{
2
success
:
true
,
3
result
:
4
[
5
{
id
:
"tgfb523e-74ac-4041-8bb1-a76a3b5e78f5"
,
messsage
:
""
,
status
:
"updated"
},
6
{
id
:
"aefb523e-74ac-4041-8bb1-a76a3b5e78h6"
,
messsage
:
""
,
status
:
"updated"
}
7
]
8
9
}
Copied!
Updating Data - Previous
Adding Objects to Standard Resources
Next - Updating Data
Updating User Defined Table
Last modified
1yr ago
Copy link