cancel
Showing results for 
Search instead for 
Did you mean: 

not able to do revert assets

eruditionist
Champ in-the-making
Champ in-the-making
on javascript API there is a method available that reverts all assets. for example.

revertAssets(Asset[] assets)
revert the specified assets.

We have a bunch of RSS type content created using a webform that needs to be reverted using a webscript. Its a basic question so I need to know how do I define Asset[] in javascript? for example.

var rssArray = new Array();
var assetArray = new Asset()?
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Neither,  you will get assets from a prior call to alfresco. 

For example the modified items within a sandbox are assets.

mrogers
Star Contributor
Star Contributor
You can also revert assets by their path.

eruditionist
Champ in-the-making
Champ in-the-making
so I have to get the modified items list and that would be my assets and than I simply pass that Array to do revert?