Each Data Sync profile extracts a different set of information from the database,
depending on the template passed to it. If you want your tables to be included in the Data Sync
export for a profile, you must extend the correct template.
About this task
Place the extended templates in the
install_dir/extensions/global/template/resource directory.
The templates associated with the profiles are similar
to the API templates (refer to Extending API templates),
but with only the entity names and no attributes.
Procedure
- Note the XMLName attribute of the table being modified
in the entity tag inside the database entity XML files (which contains
the definition of all the tables). These database entity XML files
are located in the install_dir/repository/entity
directory.
- Search for the pattern of that XMLName attribute in the install_dir/extensions/global/template/resource
directory. The search results in finding the data sync template to
extend.
For example, consider that you want to extend
an attribute in the YFS_ITEM table. The XMLName for this table as
specified in install_dir/repository/entity/ycm_tables.xml
is Item. Now search for the attribute Item in the install_dir/extensions/global/template/resource
directory to find the data sync template impacted by this extension.