List domain under community
Is it possible to list the domain when I gave the root community Id ? Community1 -> community2 -> community3 -> community 4-> domains. Is it possible to get domain details by giving community1 id ?
gibinjohn1
Posted 4 years ago · Edited 1 year ago·Last reply 4 years ago
6 comments
Ann Wuyts
·4 years ago · EditedOn Ideation:
List all the domain under the root community, not only on first level
I’m also on the fence if this is a bug or not-- and would suggest to submit it with Support as well.
arthurburkhardt
·4 years ago · EditedHuh…
I did not expect that. I’m not sure if it’s always been like that or something changed at some point.
I was pretty sure the caching system implemented a recursive lookup to create a map of all domains within the hierarchy of communities.
Maybe it was removed for performance reasons, but I’d consider this as a bug.
Other leads:
Hum… I don’t see other possibilities
gibinjohn1
OP4 years ago · EditedHi @nareh.tarasyan , in my case i can give only root community Id and I want to fetch domain in the 3rd level subcommunity
narehtarasyan
·4 years ago · EditedHi Gibin
Did you try something like this?
This should return you all the domains under the community.
arthurburkhardt
·4 years ago · Edited@gibin.john Close, close!
You can use this flag to include all subcommunities (communities under the root community)
domainApi.findDomains( FindDomainsRequest.builder() .communityId(rootCommunityId) .includeSubCommunities(true) .build() )gibinjohn1
OP4 years ago · Edited@arthur.burkhardt yea tried but it can fetch you domains in 2nd level community only