Data Exchange UPSERT Message
If your application imports data by using the InSight Data Exchange Data Exchange Web Service, the application constructs the messages that the applications posts to the Data Exchange Web Service.
UPSERT Message Example
Note that this example is identical to the example in Data Exchange UPDATE Message, except for <method type=”UPSERT”> in the following example.
<?xml version="1.0" encoding="UTF-8"?> <dataexchange version="3"> <method type="UPSERT"> <object id="upsertID1" type="com::liquent:: InSight::manager:: registration::domain:: Application"> <field id="name"> <value>UpdatedTESTAPPNAME</value> </field> <field id="code"> <value>UpdatedTESTAPPCODE</value> </field> <field id="clinicalTrialsNumber"> <value>CTN #2</value> </field> <field id="procTypeId"> <value>National US</value> </field> <field id="relatedSet"> <value>RelatedApp2</value> </field> <field id="progCode"> <value>UpdatedTESTAPPCODE</value> </field> <field id="arbitrationFlag"> <value>No</value> </field> <field id="internalCode"> <value>INTERNALCODE</value> </field> <field id="submittorId"> <value>United States</value> </field> <field id="legalDistTypeId"> <value>Prescription-Only</value> </field> <field id="legalBasisId"> <value>New Legal Basis</value> </field> <field id="statusDate"> <value>2011-12-03</value> </field> <field id="statusId"> <value>Planned</value> </field> <field id="impid"> <value>an updated impi ID</value> </field> <field id="regionId"> <value>United States</value> </field> <query id="query for upsertID1" type="com:: liquent:: InSight:: manager:: registration:: domain:: Application"> <field id="code"> <value>test app name</value> </field> </query> </object> </method> </dataexchange>