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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

CollectionFunctions - GetCollectionVisibilityPermissions // AddCollectionVisibilityPermissions

sabharees
15-Moonstone

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.. 

ACCEPTED SOLUTION

Accepted Solutions
sabharees
15-Moonstone
(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
15-Moonstone
(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

Announcements


Top Tags