Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
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?
Solved! Go to Solution.
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:
Create a csv file respecting this format. Example:
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
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:
Create a csv file respecting this format. Example:
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>