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

How to create/upload representation through API?

TT_9345405
11-Garnet

How to create/upload representation through API?

How to create/upload representation through API?

2 REPLIES 2

If the file exists serve side or is accessible by the server you can use Java api to create new application data then add it to a content holder, in this case a representation.

To upload from client side would need some additional cusotmisation of the UI to add a button to open the file browser etc etc

Hello @TT_9345405 

I would start to study how a AfterLoader works.

You can check the source code and learn how to add a additional files to a representation.

During a changing name the file is stored again to a representation.

 

From that point you can create new representation by general API to store a new object, and then attach a file as primary representation content (ContentRoleType.PRODUCT_VIEW_ED). 

 

https://www.ptc.com/en/support/article/cs252900

 

PetrH

 

 

Announcements


Top Tags