Hello,
Wanted to check with the community if anyone tried updating the workflow comments data for 'current' workflow step via webservices.
Thanks,
Mahesh
Hi Mahesh,
Yes, I have added comments to the current workflow task. Below is a high level overview of the calls that I made to achieve this:
I hope this is helpful.
Regards,
André RoyPrincipal Technical Analyst
Hi Andre,
Thanks for the response.
I was actually doing the same thing but still not setting.
I created the ActivityComment object and set all the variables like ActivityID, Name, CommentDate, Comment, etc and then added back to the ActivityComment array and updateworkitemdata. I also noticed that if I getworkitemdata and then update only form attributes, then updateworkitemdata, a new blank row for comments is also added. I am running on CS10 Update 2015-06.
I’ve attached a sample C# program that adds a new comment to a workflow task which is “ready”, then completes the step. You will simply need to replace the WorkID and SubWorkID variables with an actual Workflow ID from your system.
This is the method which I found to work well when adding comments to a workflow.
Hi Andrey,
Interesting. Worked perfect. Thank you so much for the snippet.