cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

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

spai-2
12-Amethyst

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

ACCEPTED SOLUTION

Accepted Solutions
Prabhash
12-Amethyst
(To:spai-2)

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.

View solution in original post

3 REPLIES 3
Prabhash
12-Amethyst
(To:spai-2)

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.

Hello Prabhash,

 

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

 

Thanks,

Harshal

spai-2
12-Amethyst
(To:spai-2)

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

Announcements


Top Tags