掲示板

How to get organization phone numbers

11年前 に George Rempousis によって更新されました。

How to get organization phone numbers

New Member 投稿: 7 参加年月日: 13/01/28 最新の投稿
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
11年前 に Gnaniyar Zubair によって更新されました。

RE: How to get organization phone numbers (回答)

Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
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
11年前 に George Rempousis によって更新されました。

RE: How to get organization phone numbers

New Member 投稿: 7 参加年月日: 13/01/28 最新の投稿
Thanks that worked perfectly.