How to use item_id generation when Naming Rule appied with TC JAVA API( or may be SOA) ?
I have a naming rule with 2 patterns for example:
I use Java API function tccomponent_item_type.create(item_id,rev_id,item_type, item_name,item_desc,uom_tag)
If we need item_id generated by TC we just set item_id parameter as NULL.
But how to get new Item_ID if the Naming Rule with two patterns exist for this item?
Solved! Go to Solution.
I havent tried it but this SOA API DataManagementService.getNextIds can be used for generating ID based on pattern
Before using this API, you will have to find the naming rule associated with the ITEM_ID property for that business object type. Pattern is also one of the arguments to the getNextIds API.
So i believe, you can generate your next ID with right input parameters
Once you have the new ITEM_ID generated, you can use it in your create API