JS Client API
  • 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
On this page

Was this helpful?

  1. Updating Data

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:

pepperi.api.activities.update(
{objects: [ 
 {UUID: "tgfb523e-74ac-4041-8bb1-a76a3b5e78f5" , TSAMyComment: "ABC" },
 {UUID: "aefb523e-74ac-4041-8bb1-a76a3b5e78h6" , TSAMyComment: "DEF"}
]})  

Returns a response object with the list of updated objects as following:

{
 success: true,
 result:
  [
    {id:"tgfb523e-74ac-4041-8bb1-a76a3b5e78f5",messsage:"",status:"updated"},
    {id:"aefb523e-74ac-4041-8bb1-a76a3b5e78h6",messsage:"",status:"updated"}
  ]
  
}
PreviousAdding Objects to Standard ResourcesNextUpdating User Defined Table

Last updated 3 years ago

Was this helpful?