Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi.
I'm trying to, using the api delete a DocumentType.
I'm doing.
List<DocumentType> docs = DocumentType.GetAllAsList();foreach (DocumentType doc in docs){ new DocumentType(doc.Id).delete(); // this one gives error}
But im getting an error consering the cache. A Null pointer exception.
How am I supposed to delete a DocumentType using the api?
Hi Isak,
Test this code:
List<DocumentType> docs = DocumentType.GetAllAsList();foreach (DocumentType doc in docs){ doc.delete(); }
HTH.
Sincere regards,Eduardo
Thanks, Eduardo, But.
It won't work.
Same error, maybe I should have stated before that I've of course tried this.
But I've solved it using the SqlHelper, and writing raw SQL-code, this feels though kind of stupid.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
DocumentType .delete(). Cache error
Hi.
I'm trying to, using the api delete a DocumentType.
I'm doing.
But im getting an error consering the cache. A Null pointer exception.
How am I supposed to delete a DocumentType using the api?
Hi Isak,
Test this code:
HTH.
Sincere regards,
Eduardo
Thanks, Eduardo, But.
It won't work.
Same error, maybe I should have stated before that I've of course tried this.
But I've solved it using the SqlHelper, and writing raw SQL-code, this feels though kind of stupid.
is working on a reply...