Developer forum

Forum » Development » Update add-in parameter value in code on BatchIntegrationScheduledTaskAddIn

Update add-in parameter value in code on BatchIntegrationScheduledTaskAddIn

Espen Strømsnes
Espen Strømsnes
Reply

I have a custom BatchIntegrationScheduledTaskAddIn with a datetime parameter that I need to update when the batch integration executes.

I have tried using the SetValue method, without any luck. I have also found some forum post regarding this where it was suggested to retrieve the current task, load parametersettings and save the task. I haven't been able to get this working as well. 

In the attached screenshot you can see that the parameter value is not updated on the scheduled task after is has executed.

 

Do you have the answer of how to do this correctly?

Best regards

Espen

SetParameterValue.png

Replies

 
Espen Strømsnes
Espen Strømsnes
Reply

I have now tried saving the current task (as described in another forum post). As you can see in the screenshot the parameter value that is set to currentTask.AddInSettings actually contains the updated timestamp, but the value is not persisted when I call currentTask.Save()

 

Best regards,

Espen

SetParameterValue_2.png

 

You must be logged in to post in the forum