So I use the validateListing event to fire off a script that writes today’s date and current BIN price to the private comments field. This gives me a history of dates/prices at relists/restarts.
Works well except when there is an error, I’ll then get a duplicate entry on the subsequent successful launch.
Therefore I want to enclose my script in a no-error routine.
Question: How do I check that there are no errors? I think I check that the errors array is empty but not sure how to do it within the validateListing event. Probably something simple but can’t figure it out.
Here’s an example from one of my listings. I want to keep the history and just append to it. My script does the append ok, but will write a duplicate entry if an error is found and i have to “re-validate” ( if that makes sense. )