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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Checking for a sub unit from an organization

KV_9940969
3-Visitor

Checking for a sub unit from an organization

Hi ,

 

I have to find out if a particular sub unit is available in the given sub-Organization through service. Suppose I have a sub unit name as 'B' and I have to check if the particular sub unit is available in organization 'Alphabet' or not . I have to check this through a service. Pls guide me through this.

 

Thanks in advance

 

1 REPLY 1
TonyZhang
13-Aquamarine
(To:KV_9940969)

Hi,

 

Here's how I would implement it.

Create a service with 2 input parameters called orgName and subUnitName.

 

In the body call below service to return a Boolean result telling me if a sub unit is available in an organization or not.

 

let result = Organizations[orgName].IsInOrganization({
    name: subUnitName /* STRING */
});
Top Tags