flexrep.pullSetDomainId

flexrep.pullSetDomainId(
   pull as element(flexrep.pull),
   domain-id as (Number|String)
) as element(flexrep.pull)

Summary

This function sets the domain ID for the specified pull configuration.

Parameters
pull The pull replication configuration returned by the flexrep.pullGet function.
domain-id The domain ID to set for the pull configuration.

Example

const flexrep = require('/MarkLogic/flexrep');

  declareUpdate();
  let pullConfig = flexrep.pullGet(13991089731050213376, true); 
  let pullCfg = flexrep.pullSetDomainId(pullConfig, 2235475951259984368);

  flexrep.pullInsert(pullConfig);

  // Sets the domain ID for the pull configuration. 
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy