How to restrict auto numbering for WT Part
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to restrict auto numbering for WT Part
Version: Windchill 11.2
Use Case: Restricting auto numbering for part creation in windchill rest api.
Description:
Im trying to create a WT part file using rest api.I'm able to create that without providing number property in the request .The part file is created with number generated from windchill. But when I try to provide a value for the property number in the request ,it throws validation error.Can you help me with creating a part file with any number provided in the request.
Error message for reference:
- Labels:
-
REST Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
What does your OIR look like?
If you’re using OOTB number algorithm that’s the problem.
You need a custom number algorithm for what you are trying to do, which is unique.
Based your post it sounds like you want if a number is supplied use it, but if a number is not supplied auto generate it.
Is that about right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
+ @SS_10923513 REST is just a different way to make the same operations as on the UI, if the auto numbering is set, the field will be grayed out and marked as generated, but you can make different configurations with OIRs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @SS_10923513 ,
Did you get a chance to consider what @d_graham is suggesting? please let us know...
![](/skins/images/695EE5AD3E567050FEDD72575855ED93/ptc_skin/images/icon_anonymous_message.png)