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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Number/Item ID reservation possiblities in WNC

AS_9097437
1-Newbie

Number/Item ID reservation possiblities in WNC

I am using Windchill PDMLink Release 11.1

Is it possible to reserve the next Item ID in WNC?

The REST API documentation does not offer a method to get the next Number (at least I did not find any method). Thingworkx also does not provide an API that does support this.

This Stack Overflow article gives some hints on the implementation in WNC using InfoEngine: https://stackoverflow.com/questions/35412452/how-to-get-sequence-number-in-windchill-through-api. It also suggests a work around: create a new part; take its number and then delete it. However, I think we should look for a better solution.
2 REPLIES 2

Hi @AS_9097437,

 

This is Bhushan from PTC Technical Support.

On latest Windchill REST Services, we have a provision to run Info*Engine Tasks using REST Service: /Windchill/servlet/odata/v1/IE/InvokeIETask

 

This can be leveraged to generate next sequence number, however currently Windchill REST Services do not have provision to create objects with user input numbers where Auto Numbering is enabled.

 

If you need this next sequence number to be reserved for any other custom operation, you can develop an Info*Engine Task and run it using Windchill REST Services.

 

Please let me know if this helps.

hi bhushan,

thank you for the provided in formation-no further questions so far.

br,
andreas
Top Tags