Programmatically add Item types to Poly type
Hello Experts
We use a Poly Item type (call it Repo_Poly) to manage relation and some metadata between and a single source Itemtype to multiple Itemtypes in Aras
We wrote a "Action" for Admins to add the Itemtypes to our "Repo_Poly" type to help with usability as we do other things in the background after adding the new type.
Our Server method does the following
- Add a Morphae relation between the Poly type and selected Itemtype
- Add custom actions on selected Itemtype
The thing to note is, this seems to add the Itemtype to Poly type but it does not seem to update the "List" which is used to managed Poly type.
But when we create the relations which exists between our source type and poly type(Repo_Poly), the items under the relationship table are being shown as Restricted
The DB entries seems to be identical for types added manually or programmatically
As a test we set World permission on all the types involved but we still see the same error.
We are unable to figure out what is missing, we are also unable to trigger the "beforesave" and "after save" events on the Poly type.
We also tried adding the selected Item type to this "List" used by the Poly type but there was no change.
Any suggestions will be highly appreciated