The title might not be that accurate. I would like to write up a Script Trigger before saving sale that does something if the source of the sale is 1 of 3.
How can that be resolved with the language of CRMScript?
EventData ed = getEventData();
Integer sourceId = ed.getInputValue("SaleEntity.Source.Id").toInteger();
if(sourceId in (11,128,135)) //This is the bit im struggeling with
ed.setMessage("This is a message");
Thank you for any input :)