Adding and removing omnilink
usage
<UPDATE>
<object ID="number">
<OMNILINKS>
<OMNILINK type="text" [operation="replace/append/remove"]>
<object [ID="number"]>
[<INFO>...</INFO><DESCRIPTIONS>...</DESCRIPTIONS> etc]
</object>
</OMNILINK>
</OMNILINKS>
</object>
</UPDATE>
paramètres
type: the omnilink type
exemples
Linking to an existing note :
<UPDATE>
<CONTACT ID="1857">
<OMNILINKS>
<OMNILINK type="notes" operation="append">
<MY:NOTE ID="2"/>
</OMNILINK>
</OMNILINKS>
</CONTACT>
</UPDATE>
Both notations work :
<UPDATE>
<MY:NOTE ID="2">
<OMNILINKS>
<OMNILINK type="notes" operation="append">
<CONTACT ID="1857"/>
</OMNILINK>
</OMNILINKS>
</MY:NOTE>
</UPDATE>
Replacing all notes :
<UPDATE>
<CONTACT ID="1857">
<OMNILINKS>
<OMNILINK type="notes" operation="replace">
<MY:NOTE ID="2"/>
<MY:NOTE ID="3"/>
<MY:NOTE ID="4"/>
</OMNILINK>
</OMNILINKS>
</CONTACT>
</UPDATE>
Adding a NEW note :
<UPDATE>
<CONTACT ID="1857">
<OMNILINKS>
<OMNILINK type="notes" operation="append">
<MY:NOTE><!-- no ID !!! -->
<INFO>
<TEXT>He's a good guy</TEXT>
</INFO>
</MY:NOTE>
</OMNILINK>
</OMNILINKS>
</CONTACT>
</UPDATE>
Remove a note (the note will still exist, only the link is destroyed) :
<UPDATE>
<CONTACT ID="1857">
<OMNILINKS>
<OMNILINK type="notes" operation="remove">
<MY:NOTE ID="2"/>
</OMNILINK>
</OMNILINKS>
</CONTACT>
</UPDATE>