on 07-10-2015 10:43 AM
Hi Experts,
In order to purge a contract using the Delete Document option under Document button on toolbar, the following criteria have to be met:
However, when the four conditions are met, we still can't delete and get the attached error message:
We have custom contract validation scripts and saved scripts. Once we inactivate these two scripts, we are able to delete the same contract. Just curious to find out how we can bypass these scripts when trying deletion or what in our script could cause this? I've check the logs, error are thrown from validation scripts, but it does not make sense to trigger validation script and saved scripts when deleting a record, doesn't it?
Thanks
Yang
Hi Yang,
Indeed, both Validation and Saved scripts will be triggered when trying to cancel/delete the document. The scripts will not take the 'action' into account, but the document lifecycle.
You could bypass the validations by checking for doc.getFieldMetadata("DELETED_AT").get(doc) in your scripts.
Regards,
Bogdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi experts,
After deleting contracts using the Delete Document option, is there a way to retrieve the e.g. the master agreement IDs that has been deleted?
As we have requirement for notifying downstream system that this MA has been deleted from Sourcing. Any suggestions on how to publish deletion update to downstream?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.