Forum Discussion
angela
6 years agoCatalyst II
Who is Ron? :)
itemX.setProperty("thumbnail","vault:///?fileId=XXX") - for thumbnails in the Vault
itemX.setProperty("thumbnail,"../customer/images/RonOnTheBeach.jpg"); - for thumbnails in codetree
Agostinho
6 years agoIdeator I
Hi Angela
I have added the image file like below and next I add the image as you said to the CAD item:
var ItemVault = Innovator.newItem("File","add");
ItemVault.setProperty("filename", PicName);
ItemVault.attachPhysicalFile(@NewPicNameAndPath);
var ItemResult = ItemVault.apply();
However the picture doens't appear. I have looked in the Files list in Aras and the picture file it isn't there. I think I am adding the picture file wrongly to the Vault.
Kind Regards
Agostinho