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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

CollectionFunctions - GetCollectionVisibilityPermissions // AddCollectionVisibilityPermissions

sabharees
13-Aquamarine

CollectionFunctions - GetCollectionVisibilityPermissions // AddCollectionVisibilityPermissions

Hi, Currently I am trying to get/add collection level visibility permissions for Media. 

code : 
result = Resources["CollectionFunctions"].GetCollectionVisibilityPermissions({
collectionName: "Media" 
});

If I try to execute I am getting error like :  Message :: Collection [Media does not exist - See Script Error Log for more details.

 

Thanks in advance.. 

1 ACCEPTED SOLUTION

Accepted Solutions
sabharees
13-Aquamarine
(To:sabharees)

I got an solution from this post -> https://community.ptc.com/t5/ThingWorx-Developers/ThingWorx-Entity-Collection-Types-Full-List/td-p/683987 for media collection terminology should be "MediaEntities" and its working fine for me. 

 

for ref: 

case "Projects":
case "Things" (valid for "Wiki", "Blog", "ValueStream", "Stream", "DataTable", "IndustrialConnection", "IntegrationConnector")
case "ThingTemplates":
case "ThingShapes":
case "DataShapes":
case "ModelTags":
case "Networks":
case "Mashups" (valid for  "Master", "MashupTemplate", "Gadget")
case "Dashboards":
case "Menus":
case "MediaEntities":
case "StyleDefinitions":
case "StyleThemes":
case "StateDefinitions":
case "DataTags":
case "PersistenceProviders":
case "Groups":
case "Users":
case "Organizations":
case "ApplicationKeys":
case "DirectoryServices":
case "Authenticators":
case "LocalizationTables":
case "Resources":
case "Subsystems":

 

Hope, This will help for someone, someday

View solution in original post

1 REPLY 1
sabharees
13-Aquamarine
(To:sabharees)

I got an solution from this post -> https://community.ptc.com/t5/ThingWorx-Developers/ThingWorx-Entity-Collection-Types-Full-List/td-p/683987 for media collection terminology should be "MediaEntities" and its working fine for me. 

 

for ref: 

case "Projects":
case "Things" (valid for "Wiki", "Blog", "ValueStream", "Stream", "DataTable", "IndustrialConnection", "IntegrationConnector")
case "ThingTemplates":
case "ThingShapes":
case "DataShapes":
case "ModelTags":
case "Networks":
case "Mashups" (valid for  "Master", "MashupTemplate", "Gadget")
case "Dashboards":
case "Menus":
case "MediaEntities":
case "StyleDefinitions":
case "StyleThemes":
case "StateDefinitions":
case "DataTags":
case "PersistenceProviders":
case "Groups":
case "Users":
case "Organizations":
case "ApplicationKeys":
case "DirectoryServices":
case "Authenticators":
case "LocalizationTables":
case "Resources":
case "Subsystems":

 

Hope, This will help for someone, someday

Top Tags