HI
A similar issue has been discussed several times before. AFAIK, there is no existing function for this.
But you can create your own extension to achieve. Base source maybe likes below, you can improve.
public void MssGetAttributeByName(object ssObject, string ssAttributeName, out string ssValue)
{
ssValue = "";
// TODO: Write implementation for action
var property = type.GetProperty("ss" + ssAttributeName);
if (property == null)
{
GenericExtendedActions.LogMessage(AppInfo.GetAppInfo().OsContext, "property Is null", "MODULENAME");
}
else
{
GenericExtendedActions.LogMessage(AppInfo.GetAppInfo().OsContext, property.GetValue(ssObject).ToString(), "MODULENAME");
ssValue = property.GetValue(ssObject).ToString();
}
}