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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

Rest API navigation from part to module variant

SS_10923513
5-Regular Member

Rest API navigation from part to module variant

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 2
Fadel
22-Sapphire III
(To:SS_10923513)

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

 

 

 

Fede

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

Announcements
Top Tags