Skip to main content
1-Visitor
July 27, 2016
Question

how to initialize MediaEntity in 6.6

  • July 27, 2016
  • 1 reply
  • 1750 views

In Thingworx 6 api, I can get initialize MediaEntity through com.thingworx.system.managers.MediaEntityManager;

MediaEntity logoEntity = MediaEntityManager.getInstance().getEntity(logoLink);

But how to initialize MediaEntity in 6.6 API?

1 reply

5-Regular Member
July 28, 2016

See answer on this, identical thread: Thingworx 6 extension failed to import in 6.6

mak11-VisitorAuthor
1-Visitor
July 29, 2016

Thanks,

Yes, I found the method to initialize MediaEntity and it works..

MediaEntity logoEntity = (MediaEntity) EntityUtilities.findEntity(logoEntityName, ThingworxRelationshipTypes.MediaEntity);