Skip to main content
1-Visitor
November 8, 2022
Question

Number/Item ID reservation possiblities in WNC

  • November 8, 2022
  • 1 reply
  • 995 views
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.

    1 reply

    17-Peridot
    November 10, 2022

    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.

    1-Visitor
    November 16, 2022
    hi bhushan,

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

    br,
    andreas