Need to add comments for the createhistory function in groovy
Summary:
Hello
We are executing below script for setting a user status and assigning an user using groovy on the Contract event model - entry step.
UserStatusCode='YYYY-REVIEW';
AssigneeId = XXXXXXXXX;
AssigneeType = 'OKX_RESOURCE';
eventModel.execute('createHistory');
I need to also add comments in the history-audit record when when its created. Say for eg , Approved by user-ABC , Dept : ZZZZZ.
Let me know what are the parameters to use for the createhistory function to achieve the above.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
Tagged:
0