Page 1 of 1
Raise Errors/Warnings/Information from Automation
Posted: Mon May 02, 2022 6:06 pm
by elimalone19
Is there any way to raise Errors/Warnings/Information in a python automation snippet, similar to how its done in a COR?
Re: Raise Errors/Warnings/Information from Automation
Posted: Tue May 03, 2022 12:54 pm
by BobRichards
No.
What are message are you wanting to persist? Ultimately all messages are generated as a result of a COR validation aspect rules raising messages. Your automation snippet could set a specific tag in an IOrderItem and a COR validation could be written to detect the event and raise a message. Or you could create a custom field text box and if the value is set, the COR validation script could raise a message.
The trick is always how to disable the message when you want to stop raising the message.
Re: Raise Errors/Warnings/Information from Automation
Posted: Tue May 03, 2022 7:22 pm
by elimalone19
I think going down that route would be a little too over-engineered. Thank you for the information though!