Get the display name of a soft type for a document object using API
Hi All,
Can anyone help me to get display name of a soft type for a document object using API.
Regards
Sudeep Pai
Hi All,
Can anyone help me to get display name of a soft type for a document object using API.
Regards
Sudeep Pai
Sudeep, you can use below snippet to do so.
TypeIdentifier identifier = TypeIdentifierHelper.getTypeIdentifier("com.syn.customDocSoftType");
try {
String displayName = TypedUtilityServiceHelper.service.getLocalizedTypeName(identifier, Locale.US);
} catch (RemoteException e) {
e.printStackTrace();
}
Here, com.syn.customDocSoftType is internal name of a soft type in my instance.You need to replace it with an appropriate value from your system.
Let me know if you need more information.
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.