Fórum

How to get organization phone numbers

George Rempousis, modificado 11 Anos atrás.

How to get organization phone numbers

New Member Postagens: 7 Data de Entrada: 28/01/13 Postagens Recentes
Hi,

I'm new to Liferay and I'm trying to get the organization information from an organization object, on velocity

I can get the address/addresses with the $org.getAddress() / $org.getAddresses()

but I cannot find a method in the organization object that returns phone numbers.

Is there some way I can retieve them?

Thanks
thumbnail
Gnaniyar Zubair, modificado 11 Anos atrás.

RE: How to get organization phone numbers (Resposta)

Liferay Master Postagens: 722 Data de Entrada: 19/12/07 Postagens Recentes
Hi,

You cannot get the phone number details from organization object. It is stored in Phone model.

So Please use this :

PhoneLocalServiceUtil.getPhones(companyId,"com.liferay.portal.model.Organization",organizationId);


HTH

- Gnaniyar Zubair
George Rempousis, modificado 11 Anos atrás.

RE: How to get organization phone numbers

New Member Postagens: 7 Data de Entrada: 28/01/13 Postagens Recentes
Thanks that worked perfectly.