Entity Accounting Periods - Upsert Mode Example

<EagleML xmlns="http://www.eagleinvsys.com/2011/EagleML-2-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" eaglemlVersion="2-0" eaglemlType="EntityTransactionMessage" xsi:schemaLocation="http://www.eagleinvsys.com/2011/EagleML-2-0 eagleml-main-2-0.xsd" xsi:type="EntityTransactionMessage"> <entityTransaction> <header> <objectType>EntityAccountingPeriods</objectType> </header> <entityAccountingPeriods> <objectType>EntityAccountingPeriods</objectType> <objectId>EntityAccountingPeriods</objectId> <updateSource>MCADMIN</updateSource> <entityXrefs> <entityXref> <xrefAccountId>XREFK1J2L3T4</xrefAccountId> <xrefAccountIdType>CUSIP</xrefAccountIdType> <xrefClassCode>TF</xrefClassCode> </entityXref> </entityXrefs> <autoAddBasis>Y</autoAddBasis> <initialFlag>N</initialFlag> <yearEndFlag>N</yearEndFlag> <closeoutFlag>N</closeoutFlag> <closedFlag>N</closedFlag> <accountingBasis>GAAP</accountingBasis> <startDate>2015-03-20</startDate> <endDate>2015-03-21</endDate> <closedDate>2015-04-09T16:16:16</closedDate> <reopenUserid>user2</reopenUserid> <closeUserid>user1</closeUserid> <baseCurrency>EUR</baseCurrency> <reopenedDate>2015-04-10T15:15:15</reopenedDate> <transClosedFlag>N</transClosedFlag> <transClosedDate>2015-04-07T14:14:14</transClosedDate> <transReopenUserid>user4</transReopenUserid> <transCloseUserid>user3</transCloseUserid> <transReopenendDate>2015-04-08T13:13:13</transReopenendDate> <monthEndDate>2015-02-28</monthEndDate> <monthEndStatus>O</monthEndStatus> <acctPeriodSeq>1</acctPeriodSeq> </entityAccountingPeriods> </entityTransaction> </EagleML>