主权项 |
1. A method for synchronizing data in an on-demand services environment, the method comprising:
receiving at a host system, a request from a user system to initiate a workflow that accesses at least one of a first object and a second object, the host system having a processor system including at least one processor and a memory system; initiating the workflow with the host system to synchronize the first object with the second object by at least
determining, by the processor system, if either the first object and the second object includes line items to be synchronized,if the first object and the second object have line items to be synchronized, performing a rollup for one or more line items,if the first object and the second object do not have line items to be synchronized, if a value stored in a first element of the first object changed,determining, by the processor system, whether a second object is being synchronized to the first object, and if the second object is being synchronized to the first object, updating, by the host system, the second object, such that a second element that corresponds to the first element, but is in the second object, has a value that agrees with the value stored in the first element;determining, by the host system, whether an error condition occurs; andif the error condition is not detected, saving the updating in the memory system of the host system. |