Sync a list of Accounts within a particular time period
Using Centric Tools
// Establish connectivity information CRMConnection crm = new CRMConnection(); crm.setUrl("http://www.example.com/crm"); crm.setId("www.example.com"); crm.setCode("password"); crm.setClientId(clientId); //Specify anchors crm.setLastAnchor("2007-09-02 12:00:00.000"); crm.setNextAnchor("2007-09-22 12:00:00.000"); //Add Meta Info with fields required ArrayList meta = new ArrayList(); meta.add("name"); meta.add("accountNumber"); meta.add("contractEndDate"); crm.setTransactionMeta(meta); DataRecord accounts = new DataRecord(); accounts.setName("accountList"); accounts.setAction(DataRecord.SYNC); crm.load(accounts);
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <app> <authentication> <id>127.0.0.1</id> <systemId>4</systemId> <clientId>1</clientId> < code>792fef441691aa41135a15c1478a5ee4< /code> <lastAnchor>2007-09-02 12:00:00.000</lastAnchor> <nextAnchor>2007-09-22 12:00:00.000</nextAnchor> </authentication> <transaction> <meta> <property>name</property> <property>accountNumber</property> <property>contractEndDate</property> </meta> <accountList action="sync"/> </transaction> </app>
Sign in to add your comment.