Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
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..
Solved! Go to Solution.
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
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