Browse the versions of an item
Hi everyone , I'm currently trying to implement a C# method that should be able to browse all the versions of a Part Item , thus we can read the states of the different versions and promote them . but the problem is that I don't know how to get the versions of an Item . Does anyone know how to solve this issue please ? Thanks in Advance Hamdi5.3KViews0likes4CommentsWhat is the best way to validate whether an item has a parent?
I'm trying to send an email on promotion to "Released" of Parts when a couple of criteria are met, the parts being of a certain custom classification we've added, and them not being used in another BOM anywhere (i.e. they're top-level Parts being released). What's the best way to go about checking whether the part is a top-level part (i.e. doesn't have a parent)? I've tried isRoot(), getParentItem(), and getProperty("source_id"), but I'm either misusing those or for some reason they're not working for my case. This is what I have tried so far (this method is attached as a Post method to the lifecycle transitions to Released, and it is generating the emails, it's just not limiting it to only the times when it's a top-level BOM, like I want): [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:c6adf788-e399-4db7-b63a-90e953d6ebf3:type=csharp&text=Innovator%20inn%20%3D%20this.getInnovator%28%29%3B%0D%0AItem%20myResult%3B%0D%0Aif%20%28this.getProperty%28%22classification%22%2C%20%22%22%29%20%3D%3D%20%22Hull%20Assembly%22%20%26%26%20this.isRoot%28%29%20%3D%3D%20true%29%0D%0A%7B%0D%0A%20%20%20%20%20%20%20%20%2F%2Femail%20code%0D%0A%7D%0D%0Areturn%20this%3B%0D%0A%0D%0A%0D%0A%2F%2For%0D%0A%0D%0A%0D%0AInnovator%20inn%20%3D%20this.getInnovator%28%29%3B%0D%0AItem%20myResult%3B%0D%0Aif%20%28this.getProperty%28%22classification%22%2C%20%22%22%29%20%3D%3D%20%22Hull%20Assembly%22%20%26%26%20this.getParentItem%28%29%20%3D%3D%20null%29%0D%0A%7B%0D%0A%20%20%20%20%20%20%20%20%2F%2Femail%20code%0D%0A%7D%0D%0Areturn%20this%3B%0D%0A%0D%0A%0D%0A%0D%0A%2F%2For%0D%0A%0D%0A%0D%0AInnovator%20inn%20%3D%20this.getInnovator%28%29%3B%0D%0AItem%20myResult%3B%0D%0Aif%20%28this.getProperty%28%22classification%22%2C%20%22%22%29%20%3D%3D%20%22Hull%20Assembly%22%20%26%26%20this.getProperty%28%22source_id%22%2C%20%22%22%29%20%3D%3D%20%22%22%29%0D%0A%7B%0D%0A%20%20%20%20%20%20%20%20%2F%2Femail%20code%0D%0A%7D%0D%0Areturn%20this%3B]Solved2.5KViews0likes2Commentsapply PE_createNewRevision from client method
hello, My initial goal is to have a confirm pop up when using the action to create a new revision.(for parts) I have an action that run a simple client method like this: if(confirm("creation of new major revision")) { //here i want to launch the PE_CreateNewRevision } I've tried with applyMethod but the method doesn't seem to apply on the part instance. Any help on understanding this is much appreciated. thanks lucasSolved6.1KViews0likes10CommentsError while doing mass promotion
I'm trying to do mass promotion but got following error after executed: String or binary data would be truncated. The statement has been terminated. in SQL: INSERT INTO [MPO_MASSPROMOTIONRECORD] ( [BEFORE_PROMOTE_ITEM_ID],[BEHAVIOR],[CONFIG_ID],[CREATED_BY_ID],[CREATED_ON],[CURRENT_STATE],[GENERATION],[GOT_COMMENT],[ID],[IS_CURRENT],[IS_PROMOTED],[IS_RELEASED],[ITEM_CONFIG_ID],[ITEM_KEYED_NAME],[KEYED_NAME],[LOCKED_BY_ID],[MAJOR_REV],[MANAGED_BY_ID],[MODIFIED_BY_ID],[MODIFIED_ON],[NEW_VERSION],[NOT_LOCKABLE],[OWNED_BY_ID],[PERMISSION_ID],[RELATED_ID],[SORT_ORDER],[SOURCE_ID],[STATE],[STATE_BEFORE],[STATUS_ERROR],[TEAM_ID] ) VALUES ( @p0,@p1,@p2,@p3,@p4,@p5,@p6,@p7,@p8,@p9,@p10,@p11,@p12,@p13,@p14,@p15,@p16,@p17,@p18,@p19,@p20,@p21,@p22,@p23,@p24,@p25,@p26,@p27,@p28,@p29,@p30 ) Anyone know how to fix it? Thanks.Solved4.9KViews0likes3CommentsHow to disable Promote option from the toolbar in Aras 11SP12 for custom Itemtype?
Hello All, I need to disable the OOTB promote option available on the Item, I dont want users to use that option and promote ot even Admin users. Please let me know how to disable that option, I have seen this behaviour in Part Itemtype, let me know how it is configurable. Thanks in Advance, Mithun5.6KViews0likes2CommentsPSW lifecycle state promotions
Hello, How is the lifecycle promotions for the part submission warrant set up out of the box? I can see that there's a "PPAP Lifecycle" r the PSW. Is it connected to any of the OOTB change management items or are you meant to manually promote the PSW? Are you meant to make your own workflow map for the PSW? It doesn't seem like I can promote it manually either. I'm using aras 11 sp12. Best Regards Rick5.3KViews0likes2CommentsGet item_number of Change Item in PE_ChangeItemTransition
Hi Community, does anybody know how to get the current Change Process item (basically it´s item_number, like ECO-10001) within the PE_ChangeItemTransition Method? I want to modify the private static void PromoteImpl part around line 5297. This part of the code takes care for the promotion of the change item. It contains this line of code: Item res = promoteItem.promote(nextStatus, "Promote set"); I want to add more information to the history entry that is created by this promotion action. It would be cool if Innovator could write more into the history than just "Promote set". It would be more helpful if we could have "Promote set by ECO-10001". But for this purpose we need to pass the ECO information to the function. But I am not sure were to get this one. Any ideas? Thanks! AngelaSolved3.1KViews0likes1Comment