syncOneToManyData()
Overview
public boolean function syncOneToManyData(
      required string sourceObject  
    , required string sourceProperty
    , required string sourceId      
    , required string targetIdList  
)
Synchronizes a record's related one-to-many object data for a given property. Returns true on success, false otherwise.
Arguments
| Name | Type | Required | Description | 
|---|---|---|---|
| sourceObject | string | Yes | The object that contains the one-to-many property | 
| sourceProperty | string | Yes | The name of the property that is defined as a one-to-many relationship | 
| sourceId | string | Yes | ID of the record whose related data we are to synchronize | 
| targetIdList | string | Yes | Comma separated list of IDs of records representing records in the related object | 
Example
presideObjectService.syncOneToManyData(
          sourceObject   = "event"
        , sourceProperty = "sessions"
        , sourceId       = rc.eventId
        , targetIdList   = rc.sessions // e.g. "635,1,52,24"
);