cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

set "Modified By " attribute through IE Task

Selva
1-Newbie

set "Modified By " attribute through IE Task

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 3
ddemay
1-Newbie
(To:Selva)

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

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();

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


Top Tags