What I want to do is to trigger an Import using the UsyncAPI like:
var uSyncBackOffice = uSyncBackOfficeContext.Instance;
uSyncBackOffice.ImportAll(ArgumentThatSpecifiesHandlers);
However, I can't find any overload of ImportAll() that allows you to specify which content you're interested. Does any such functionality exist or do you I have to reconfigure the usyncSettings to achieve this type of selective import?
You can call Import (which ImportAll just wrap's) with the name of the handler group you want to use with this you would need a handler group in the config - but it can be called what ever you want.
(force means import even if you don't think there have been any changes, this slows the import down because everything is imported - and most of the time isn't needed, as usync can work out what has changed and only update what is needed when force = false)
UsyncAPI - Import / Export only media and content
In the Usync-config, you can enable and disable handlers for various type of data:
What I want to do is to trigger an Import using the UsyncAPI like:
However, I can't find any overload of ImportAll() that allows you to specify which content you're interested. Does any such functionality exist or do you I have to reconfigure the usyncSettings to achieve this type of selective import?
Hi
You can call Import (which ImportAll just wrap's) with the name of the handler group you want to use with this you would need a handler group in the config - but it can be called what ever you want.
you can call this :
you can then turn the features on or off for each element in the group using the Enabled or Actions values.
all ImportAll actually does is wrap the Import call - with the default folder location, and the force parameter
(force means import even if you don't think there have been any changes, this slows the import down because everything is imported - and most of the time isn't needed, as usync can work out what has changed and only update what is needed when force = false)
Perfect! Thanks!
is working on a reply...