Is there a replacement for GetControlledItem in V12? My methods from V11 that contain GetControlledItems don't work in V12.
Is there a replacement for GetControlledItem in V12? My methods from V11 that contain GetControlledItems don't work in V12.
Do you use this one in the context of ChangeManaement / Workflows?
Most of the community projects use the Method "labs_GetControlledItemCSharp". Still works in V12.
Please let me know if this method is cover versioned items.
I have pretty similar implementation, but solution is failed for item, that have 3 versions (per each modification). It returns 3 Workflows items with same Workflow Process as related item that points to the 3 controlled items (that in fact single item but different version).
I can't find the way how to pick right Workflow (that will point to current version).
One potential solution is take one with latest "created_date". But looks little tricky and not right.
Other potential solution was founded here:
But I'm not sure if it is best/right solution to do so.
So is there more generic approach?
Is your Workflow revised of your Affected Item (Part/Document). I use revised Workflows and never had any trouble. Main obstacle when modifying a workflow is to avoid to many unnecessary revisions. Was a little bit easier in Innovator 11.
Form my POV the Method "labs_GetControlledItemCSharp" is right now the gold standard for getting data of cm items.
Main advantage: You add the Method once - and just use it. You do not have to understand how it works. I assume Yoanns sample was a first draft for the final community solution.
You can google the Method. At this post I even use the Method call for demonstration: community.aras.com/.../brackets-for-functions-in-csharp-methods---why-so-unusual
Is your Workflow revised of your Affected Item (Part/Document). I use revised Workflows and never had any trouble. Main obstacle when modifying a workflow is to avoid to many unnecessary revisions. Was a little bit easier in Innovator 11.
Form my POV the Method "labs_GetControlledItemCSharp" is right now the gold standard for getting data of cm items.
Main advantage: You add the Method once - and just use it. You do not have to understand how it works. I assume Yoanns sample was a first draft for the final community solution.
You can google the Method. At this post I even use the Method call for demonstration: community.aras.com/.../brackets-for-functions-in-csharp-methods---why-so-unusual