syncOneToManyConfiguratorData()

Overview

public boolean function syncOneToManyConfiguratorData(
      required string  sourceObject    
    , required string  sourceProperty  
    , required string  sourceId        
    , required string  configuratorData
    , required numeric versionNumber   
)

Synchronizes a record's related one-to-many configurator object data for a given property. Returns true on success, false otherwise.

Arguments

NameTypeRequiredDescription
sourceObjectstringYesThe object that contains the one-to-many property
sourcePropertystringYesThe name of the property that is defined as a one-to-many relationship
sourceIdstringYesID of the record whose related data we are to synchronize
configuratorDatastringYesComma separated JSON object strings representing records in the related object
versionNumbernumericYes

Example

presideObjectService.syncOneToManyConfiguratorData(
          sourceObject     = "event"
        , sourceProperty   = "sessions"
        , sourceId         = rc.eventId
        , configuratorData = rc.configuratorData // serialized array of JSON objects, without surrounding []
);