Posted on 02/11/2020 09:51:18
Hi Scott,
here is an example of how that could be done usning VB.NET:
If Not String.IsNullOrEmpty(currentTask.Assembly) Then
Dim t As Type = AddInManager.GetAddInTypeByName(currentTask.Assembly)
If Not IsNothing(t) AndAlso t.IsSubclassOf(GetType(Dynamicweb.DataIntegration.BatchIntegrationScheduledTaskAddin)) Then
Dim addInInstance As DataIntegration.BatchIntegrationScheduledTaskAddin = CType(AddInManager.CreateAddInInstance(t), DataIntegration.BatchIntegrationScheduledTaskAddin)
addInInstance.LoadParametersFromXml(currentTask.AddInSettings)
addInInstance.NotificationEmail = "test@test.com" 'change some property
currentTask.AddInSettings = addInInstance.GetParametersToXml()
currentTask.Save()
End If
End If
Hope this will help.
Kind regards, Dmitrij