This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Pre-Sync Event Possible?

I have a requirement to run some code before a particular synchronisation event occurs. I can write the process in VB but the only place I can see to execute such a process is through Process Orchestration in Designer and the only options I get is to run the piece of code on an Insert, Update, Delete etc. So is there somewhere that I can hook into one of the synchronisation processes and run some code before it occurs. Another option would be to run some code after the sync but this is less desirable and would result in more complicated code. Can someone point me at where I could implement this kind of thing in the product or some at some documentation?

  • Couldn't you run your script as the first step in the sync process chain itself?

    HTH
    Kin
  • Do you mean a complete full-sync or what is your use-case for the code to execute?

    What is it used for?
  • Yeah full syncs. I wanted to delete some rows prior to an import without a delete operation but I've since found that scoping rules will manage the scope of deletes in the sync so I can have the delete operation of the sync in effect. I'd still be interested to know if I can inject code at that point of execution.
  • You do not inject code during the sync. All full syncs will be fired by the schedules configured at the Startup Configurations. These schedules fire the RUN event for the configured Startup Configuration (Table: DPRProjectionStartInfo).

    There is a default process DPR_DPRProjectionStartInfo_Run_Synchronization listening. YOu could replace it with your version, that is doing something special for the full sync if it starts a specific startup configuration.