I ran into this problem when trying to build an MSM. Apparently module properties (and all the identifiers for that matter) get renamed during the module generation by adding the module GUID at the end of its name. For example, property "MY_PROPERTY" gets renamed to "MY_PROPERTY.803A3089_928F_46F1_BBAE_CBD39A7D6A72" (assuming 803A3089-928F-46F1-BBAE-CBD39A7D6A72 is the module GUID). I believe this is the mechanism used to prevent conflicts between multiple modules trying to use identifiers with the same name.
从MSM内部 我需要援引DL习俗行动,要求确定具有一定价值的具体财产(简称“THE_PROPERTY”)。 问题是,“PROPERTY”重新命名为“PROPERTY.803A3089_928F_46F1_BBAE_CBD39A7D6A72,因此,习俗行动从未发现过财产,也没有失败。
Is there any way to solve this problem? I was thinking of modifying the custom action so that it tries to figure out (somehow) the GUID of the module from which it is being invoked. One way of doing this could be by looking at the current action name, which should also include the GUID. But can I get the current action name from within the custom action? Can you think of another solution?
感谢!