usage
<OMNILINKTYPE ID="number">
<INFO>
<ID>number</ID>
<CREATORID>contactID</CREATORID>
<OWNERID>contactID</OWNERID>
<GROUPID>groupID</GROUPID>
<MODIFIERID>contactID</MODIFIERID>
<CREATIONDATE>YYYY-MM-DD hh:mm:ss</CREATIONDATE><!-- automatically filled by Sushee -->
<MODIFICATIONDATE>YYYY-MM-DD hh:mm:ss</MODIFICATIONDATE><!-- automatically filled by Sushee -->
<MODULEID>moduleID</MODULEID>
<DENOMINATION>string</DENOMINATION>
</INFO>
</OMNILINKTYPE>
paramètres
MODULEID: the ID of the module which will be allowed to link to any other kind of objects.
DENOMINATION: the name of the type which will link the objects
exemples
Create a new type of object to encode notes :
<CREATE>
<MODULE>
<INFO>
<DENOMINATION>my:notes</DENOMINATION>
</INFO>
</MODULE>
</CREATE>
Adding a field named Body :
<CREATE>
<FIELD>
<INFO>
<MODULE>my:note</MODULE>
<DENOMINATION>Body</DENOMINATION>
<TYPE>text</TYPE>
</INFO>
</FIELD>
</CREATE>
Create the type which will allow to link these notes to any objects :
<CREATE>
<OMNILINKTYPE>
<INFO>
<DENOMINATION>notes</DENOMINATION>
<MODULEID>1067</MODULEID>
</INFO>
</OMNILINKTYPE>
</CREATE>
Adding my first note to a contact :
<UPDATE>
<CONTACT ID="1857">
<OMNILINKS>
<OMNILINK type="notes" operation="append">
<MY:NOTE>
<INFO>
<TEXT>He's the best</TEXT>
</INFO>
</MY:NOTE>
</OMNILINK>
</OMNILINKS>
</CONTACT>
</UPDATE>
Adding a note to another kind of object :
<UPDATE>
<MY:PROJECT ID="25">
<OMNILINKS>
<OMNILINK type="notes" operation="append">
<MY:NOTE>
<INFO>
<TEXT>Deadline on the 1st of december</TEXT>
</INFO>
</MY:NOTE>
</OMNILINK>
</OMNILINKS>
</MY:PROJECT>
</UPDATE>