Join Slack
Powered by
Hi, has anyone tried to use the file.delete method...
# suitescript
p
Peter
11/11/2019, 12:31 PM
Hi, has anyone tried to use the file.delete method successfully?
b
battk
11/11/2019, 12:45 PM
there isn't much more to it than what the example in the docs
battk
11/11/2019, 12:45 PM
Copy code
file.delete({ id: fileId });
battk
11/11/2019, 12:46 PM
dont expect to delete a file you don't have permissions for or is used by other records
p
Peter
11/11/2019, 2:12 PM
ah maybe this is it
Peter
11/12/2019, 7:51 AM
I have tried this on inventory item record and deleting the item i have just added via drag and drop feature and i keep getting an unexpected error.
b
battk
11/12/2019, 7:53 AM
File or inventory item
2
Views
Open in Slack
Previous
Next