Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
George Rempousis
How to get organization phone numbers
January 31, 2013 8:57 AM
Answer

George Rempousis

Rank: New Member

Posts: 7

Join Date: January 28, 2013

Recent Posts

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
Kowbathullah Gnaniyar
RE: How to get organization phone numbers
January 31, 2013 9:15 AM
Answer

Kowbathullah Gnaniyar

Rank: Liferay Master

Posts: 606

Join Date: December 19, 2007

Recent Posts

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
RE: How to get organization phone numbers
February 1, 2013 1:47 AM
Answer

George Rempousis

Rank: New Member

Posts: 7

Join Date: January 28, 2013

Recent Posts

Thanks that worked perfectly.