hi all,in teamsite workflow, i want to get the status of attachFiles so i can update the associated records in database. Actually, the delete(status) is the most important. is it possible and how can i get it?
As ghoti told implement the code like below to track the file statusif(! -e stage_path){status="new"}else if(! -e work_area_path){status="deleted"}else{status="modified"} Or elseset file status as external attribute using the above logicin DD extract file status from external attribute to update status to DB
if(! -e stage_path){status="new"}else if(! -e work_area_path){status="deleted"}else{status="modified"}
Logic is NOT 100% correct. It assumes that if the file is NOT new or deleted it is modified -- may be or may not be modified.If you are using CSSDK API -- then you could simply use the isModified method.