Skip to main content
15-Moonstone
March 18, 2024
Solved

17273118 - Is it possible to use REST API to output part's ”Iteration“

  • March 18, 2024
  • 1 reply
  • 2302 views

In this example, customer wants to output ”Iteration“:1,

like the ”Revision“ 

 

EvaPeng_1-1710757219659.png

 

But seems attribute "Iteration" is not in Parts.json,  is it possible to output "Iteration"?

 

Thanks,

Eva

Best answer by HelesicPetr

Hi @EvaPeng 

Then you need to customize the RestAPI and add what you need if it can not be set OOTB. 

PetrH

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
March 20, 2024

Hi @EvaPeng 

Yes you can substring the version attribute.

PetrH

EvaPeng15-MoonstoneAuthor
15-Moonstone
March 21, 2024

Hi @HelesicPetr 

Thanks for your Reply~

 

Do you mean by modifying the Parts.js or Parts.json under Windchill\codebase\rest\ptc\domain\ProdMgmt\v6\entity?
Sorry I still don't know how to achieve it.
Could you please teach me more in details?

 

Thanks in advance,

Eva

HelesicPetr
22-Sapphire II
22-Sapphire II
March 21, 2024

Hi @EvaPeng 

I don't know where you call the rest api but you can just change the result in your application so you read the version output and you just grab the value after dot in your target application. . 

 

PetrH