Skip to main content
1-Visitor
April 1, 2015
Solved

Get the display name of a soft type for a document object using API

  • April 1, 2015
  • 2 replies
  • 4615 views

Hi All,

Can anyone help me to get display name of a soft type for a document object using API.

Regards

Sudeep Pai

Best answer by Prabhash

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.

2 replies

Prabhash1-VisitorAnswer
1-Visitor
April 1, 2015

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.

1-Visitor
November 22, 2017

Hello Prabhash,

 

Do you know how to fetch internal name of soft type from display name?

 

Thanks,

Harshal

spai-21-VisitorAuthor
1-Visitor
April 2, 2015

Code is working....... Thanks a lot!!!