The sample code above works really well for a standalone form, but after a whole days of trial and error, I still can't get it to update forms integrated in a workflow.
Does anyone has sample please?