Raise Errors/Warnings/Information from Automation
-
- Posts: 23
- Joined: Mon Jan 31, 2022 2:26 pm
Raise Errors/Warnings/Information from Automation
Is there any way to raise Errors/Warnings/Information in a python automation snippet, similar to how its done in a COR?
-
- Posts: 1382
- Joined: Wed Jan 15, 2014 3:50 pm
- Location: Raleigh, NC
- Contact:
Re: Raise Errors/Warnings/Information from Automation
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.
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.
Bob Richards, Senior Software Developer, SoftPro
-
- Posts: 23
- Joined: Mon Jan 31, 2022 2:26 pm
Re: Raise Errors/Warnings/Information from Automation
I think going down that route would be a little too over-engineered. Thank you for the information though!