Skip to main content
5-Regular Member
May 23, 2025
Question

Rest API navigation from part to module variant

  • May 23, 2025
  • 2 replies
  • 435 views

Version: Windchill 12.1

 

Use Case: How to navigate from part to module variant in rest API I have tried using these links.But there were no results. https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://support.ptc.com/help/windchill_rest_services/r2.3/en/windchill_rest_services/example_prodmgmnt_variant_spec_read.html&ved=2ahUKEwi-ntqrjrqNAxXnjGMGHacAJloQFnoECBwQAQ&usg=AOvVaw0azbgXuQK3OZWqhdPAKQ6f


Description:

Could you please help to navigate this downstream .

2 replies

Fadel
23-Emerald I
May 26, 2025

What version you are using ? I tried and it Brings empty result on 12.1  

as workaround you can create an alias attribute of datatype Object Reference with mapping 

roleBObject@com.ptc.wpcfg.variants.GenericVariantLink~roleAObject^wt.part.WTPart 

Fadel_0-1748274759262.png

 

This will show the variants on the info page of configurable 

Fadel_1-1748274785945.png

Later you can query the alias attribute in Rest using classic get Parts

Fadel_2-1748274878187.png

 
 

 

Fadel_14-1748275066469.png

 

 

 

Buiꓘa
Community Moderator
May 29, 2025

Hi @SS_10923513,

 

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation. 

 

Thanks,
Anurag