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

Community Tip - You can change your system assigned username to something more personal in your community settings. 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