I am working on a configurator in the latest version of Epicor Kinetic, and I need help checking if a part/material entered into the configurator menu is valid, and to send a warning/message if it is not valid.
My configurator is set up to read certain fields from the quote detail section and populate it into fields in the configurator after a button is pressed. The populated configurator field (named material) then checks the part details and populates all the fields that are needed in the configurator. The information for the part is populated by a UD method.
An issue that is occurring is that if a part has a typo or is not in the database, there is nothing that alerts the user. Is there a way to do this? I looked at using a condition and dialog-show action, but I have no idea how to make that check if a configurator field is actually in the database.
So the rest-kinetic part.partexists seems to almost be the solution, but I am not seeing a way to make the dialog-show action work only if the rest-kinetic action is a failure. The connector to dialog-show only has success, error, and empty. I tried both error and empty, and neither of those seemed to work if the part is not valid.
Looks like the PartExists returns (returnObj) a boolean. Not sure if that boolean value would be stored in the actionResult dataview?? Perhaps you could bounce that off of a condition?
You could also try PartSvc’s GetByID method. That should definitely fail/error if the ID doesn’t exist.