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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Create Groups and add an existing group as member using LoadFromFile utility

MV_10441462
12-Amethyst

Create Groups and add an existing group as member using LoadFromFile utility

Hi all, I'm trying to create a group and add an existing group as member using the LoadFromFile utility.

I came across the snippet to create group but not adding a group to it. Can somebody let me know how it can be done or some possible workaround?

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

Hello @MV_10441462 

 

there is this ptc article : https://www.ptc.com/en/support/article/CS383814 but i advise you to create a CSV file first and then transform it in XML:

 

All CSV formats of  LoadFromFile utility are listed in csvmapfile.txt, it is located in Windchill/loadFiles. About your question, the CSV format is GroupGroup:

Pascal_Brunet_0-1675148725468.png

 

Create a csv file respecting this format. Example:

Pascal_Brunet_1-1675148821532.png

 

then execute csv2xml command to transform your csv file in xml.

 

One additional remark: if you modify your groups and users outside Windchill, then recompute group membership 

https://www.ptc.com/en/support/article/CS29278

and also purge participant cache.

 

 

BR,

Pascal

 

 

 

 

 

 

 

View solution in original post

3 REPLIES 3

Hello @MV_10441462 

 

there is this ptc article : https://www.ptc.com/en/support/article/CS383814 but i advise you to create a CSV file first and then transform it in XML:

 

All CSV formats of  LoadFromFile utility are listed in csvmapfile.txt, it is located in Windchill/loadFiles. About your question, the CSV format is GroupGroup:

Pascal_Brunet_0-1675148725468.png

 

Create a csv file respecting this format. Example:

Pascal_Brunet_1-1675148821532.png

 

then execute csv2xml command to transform your csv file in xml.

 

One additional remark: if you modify your groups and users outside Windchill, then recompute group membership 

https://www.ptc.com/en/support/article/CS29278

and also purge participant cache.

 

 

BR,

Pascal

 

 

 

 

 

 

 

Thankyou so much @Pascal_Brunet , the article https://www.ptc.com/en/support/article/CS383814 solved my query.

Thankyou for your patient response.

I was actually thinking there might be a tag similar to <csvuser> like <csvGroupGroup> to add exisiting groups at the time of creating groups.

Like:

<csvGroup handler="wt.load.LoadUser.createGroup" >
<csvGroupGroup>Child Group</csvGroupGroup>
<csvgroupName>ParentGroup</csvgroupName>
<csvdescription></csvdescription>
<csvDirectoryService></csvDirectoryService>
</csvGroup>

 

Announcements

Top Tags