SyncWith Property
Introduction
The syncWith property is used to establish synchronization between two different trackings that have distinct trackingTypes.
Setup
let's suppose that we have 3 'trackingTypes' : PartnerSync, Customer, Contact.
if we chose to synchronize the partnerSync with Customer and Contact, we need to update it on the 'Tracking Editor' page :
After submitting the form, the system will automatically create the corresponding syncWith property for the target trackingTypes, establishing a bidirectional synchronization between them
Usage
The use of `syncWith` covers both the creation and updating of a tracking by setting the same `TrkID` for synchronized trackings. It ensures that only the shared `dataTypes` between the trackings are synchronized.
By taking the last example, let's create a 'PartnerSync' tracking using setTracking :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
xmlns:ixf="http://www.ixPath.com/Function" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ix="localFunction">
<xsl:output method="xml" indent="yes" />
<!-- Beginning of the Translation -->
<xsl:template match="/">
<xsl:variable name="varrr">
<Trk>
<PartnerSync>
<Address>100 , Elm Street</Address>
<IsLocalEntity>false</IsLocalEntity>
<City>Las vegas</City>
<Name>Alex</Name>
<NotIncluded>20</NotIncluded>
</PartnerSync>
</Trk>
</xsl:variable>
<iXDOC>
<testt>
<xsl:value-of select="ixf:SetTracking($varrr)" />
</testt>
</iXDOC>
</xsl:template>
</xsl:stylesheet>
the result for partnerSync and Customer
<iXDOC xmlns:ix="localFunction"
xmlns:ixf="http://www.ixPath.com/Function"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<testtt>
<iXDoc>
<PartnerSync CreationDate="2024-10-17 08:42:02"
Current="true"
EnvID="R1"
ModificationDate="2024-10-17 08:42:02"
Status="Available"
UserID=""
Version="1"
VersionID="6710cdda18bd1e28f7a9ce36"
id="6710cdda18bd1e28f7a9ce36">
<Address>100 , Elm Street</Address>
<City>Las vegas</City>
<NotIncluded>20</NotIncluded>
<Name>Alex</Name>
<IsLocalEntity>false</IsLocalEntity>
<_accessStatus>OPEN</_accessStatus>
<_accessStatusHistory>
<modificationDate>2024-10-17 08:42:02</modificationDate>
<accessStatus>OPEN</accessStatus>
</_accessStatusHistory>
</PartnerSync>
</iXDoc>
<iXDoc>
<Customer CreationDate="2024-10-17 08:42:02"
Current="true"
EnvID="R1"
ModificationDate="2024-10-17 08:42:02"
Status="Available"
UserID=""
Version="1"
VersionID="6710cdda18bd1e28f7a9ce39"
id="6710cdda18bd1e28f7a9ce36">
<Name>Alex</Name>
<_accessStatus>OPEN</_accessStatus>
<_accessStatusHistory>
<modificationDate>2024-10-17 08:42:02</modificationDate>
<accessStatus>OPEN</accessStatus>
</_accessStatusHistory>
</Customer>
</iXDoc>
</testtt>
</iXDOC>