Developer forum

Forum » Integration » Notifier after import

Notifier after import

Anders Ebdrup
Reply

Hi,

 

Is there a notifier after importing data where it is possible to see which tables have been updated?

 

Best regards, Andes


Replies

 
Morten Snedker
Reply
This post has been marked as an answer

Hi Anders,

 

This will be implemented in DW 8.3. It will be a simple notifier that will simply report back the same tables that are included in any given Data Integration job. It will be specific for Data Integration.

 

Regards /Snedker

Votes for this answer: 1
 
Anders Ebdrup
Reply

Hi Morten,

 

Is this added to 8.3? And do you have a name of the subscriber? :-)

 

Best regards, Anders

 
Morten Snedker
Reply

Hi Anders,

 

It should have been - but regret to say that it has been missed. It will be out in a release this upcoming week, though.

 

You will be able to reference the notification via
[Extensibility.Subscribe(Dynamicweb.Notifications.Integration.JobFinished)]

 

Example:


namespace Dynamicweb.Examples.CSharp.Notifications.Integration
{
    [Extensibility.Subscribe(Dynamicweb.Notifications.Integration.JobFinished)]
    public class JobFinishedObserver : Dynamicweb.Extensibility.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
        {
            Dynamicweb.Notifications.Integration.JobFinishedIntegrationArgs integrationArgs = args as Dynamicweb.Notifications.Integration.JobFinishedIntegrationArgs;

            //TODO: Add code here
            
            //Sample code:
            //If the job finished successfully
            if (!integrationArgs.JobFailed)
            {
                //Clear language cache if the import was to Languaguages table
                if (integrationArgs.DestinationTables.Contains("EcomLanguages"))
                {
                    Dynamicweb.eCommerce.International.Language.ClearLanguageCache();
                }
            }
        }
    }
}

 

 

 

Regards /Snedker

 

You must be logged in to post in the forum