Errors after upgrading the Cmf.Common.CustomActionUtilities package to v11

Hi Team,

We have updated the Cmf.Common.CustomActionUtilities package to v11.1.0.1194814.

After upgrade, we are getting lot of errors. earlier we have used Cmf.Common.CustomActionUtilities with version 10.0.3, at that time there were no errors.

Now we are upgrading our CM MES to v11.1.5, so as a part of migration, we have upgraded Cmf.Common.CustomActionUtilities package to v11.1.0.1194814 and we are getting lot of errors.

we have added all possible namespaces for Cmf.Common.CustomActionutitilities

Still we are getting below errors.

Please help us. Your help would be appreciated. !

Thanks,

Sandip Dhakane







Hi Sandip,

the AttributeHelper has been moved into a new namespace and a service.

You need to inject it like this:

using Cmf.Common.CustomActionUtilities.Abstractions;

[…]

IAttributeHelper attributeHelper = serviceProvider.GetService();

Then you can use the helper like this:

bool istAttributePresent = attributeHelper.HasAttribute(IEntity obj, string attributeName, bool loadAttribute = false);

Similarly for all the other functions:

Best regards,
Maximilian


Thanks a lot Maximillan. Really Appreciate your help. Solution which you have provided resolved all errors related with IAttributeHelper .Currently i am unable to find the alternative for below class.GeneralUtilities.GetConfigValue(configPath);It is giving an error that "The name GeneralUtilities does not exist in current context."I am unable to find “GeneralUtilities” class in v11.could you please help us.Thanks,Sandip Dhakane