Orgs
CreateChildOrg
core.CreateChildOrg({...})
Create a child org
- Object
name:String
brandColor
secondaryColor
headerColor
navColor
brandStatus
parentId
fontColor
imageColor
options
displayName
actionColor
permissionDefault
website
description
address
phone
Id for new org
core.CreateChildOrg({...})
AddAdminUser
core.AddAdminUser({orgId="..", userId=".."})
Adds an admin user to a child org; child org must be a child of the current org
- Object
orgId:String
child iduserId
user to make admin
Id or null
core.AddAdminUser({orgId="...", userId="..."})
HasChild
core.HasChild({...})
Find an org by name
- Object
parentId
org parentname
name to find
Id or null
core.HasChild({parentId="...", name="Test123"})
Layout
core.Layout(handle)
Load a layout document
- layout handle
Layout
core.Layout
OrgList
AddSubscription
- orgId
- parentId
- publisherSecret
- publisherId
Three ways to call allowing application to child orgs up to 2 levels deep
- Without orgId or parentId - current org
- With orgId - orgId is the target, current org should be the parent
- With both orgId and parent Id - orgId is the target, parent Id should be the child of the current org (and the parent of orgId)
AddSubscriptionTransformation
- orgId
- parentId
- entityKind
- handle
- dataPath
- replaceValue
PullSubscription
No parameters
UpdateOrg
LoadOrg
PullSubscriptionChildren
- orgId
- parentId
OrgId
core.OrgId()
Returns the org id of the current org.