Skip to main content
1-Visitor
September 19, 2014
Question

set "Modified By " attribute through IE Task

  • September 19, 2014
  • 3 replies
  • 1338 views

I check out WTDocument sand check in using I*E Tasks. As a result I end up with modified by value with the current session user. But I would like to overwrite and give a different value for this attribute. How is that possible? I tried the below code and it doesn't work.


<ie:webject name="CheckIn-Objects" type="ACT">







<ie:param name="FIELD" data="iterationInfo.modifier=wt.org.WTUser:926124"/">


Any idea? How Can I ser the modified by user to different name?

3 replies

1-Visitor
September 19, 2014
Don't use Info*Engine???

Read only field likely. Have to tap into the Owner API...which likely is not supported if that's past your comfort zone.





Sent from XFINITY Connect Mobile App

1-Visitor
September 19, 2014

try invoking IE task with that user itself. Like with Java code, invoke as below. I never tested, but it might work.


final Task task = new Task("myTask.xml");
task.setUsername("myusername");
task.addParam("param1", param1value);
task.addParam("param2", param2value);
task.invoke();

September 19, 2014

You can use below API to set the iteration creator/modifier


wt.vc.VersionControlHelper.service.setIterationModifier(Iterated iteration, WTPrincipalReference creator);



if you are using Webject then you can change the session using “Start-Session“ and “End-Session” Webjects



Thanks


Shreyas