Hi Yoann,
I basically want a message box that says the action ran successfully. I'm testing this in a WorkFlow "Server Event" that executes on "On Close"
Innovator inn=this.getInnovator();
//*** Min Fielded PR *********************************************************** //
Item hd= inn.newItem("MIN_Fielded_PR","get");
Item ControlledItem = this.apply("GetControlledItem");
hd.setID(ControlledItem.getID());
hd.setAttribute("select","id");
hd = hd.apply();
Item hdRelContact = inn.newItem("MIN_Fielded_PR_Contacts","get");
hdRelContact.setAttribute("select","related_id");
hdRelContact.setProperty("source_id",hd.getProperty("id"));
hdRelContact = hdRelContact.apply();
if (hdRelContact.getItemCount() != 1)
{
return inn.newError("The 'Contact Information' is required. You must provide a value for this field before saving");
}
else
{
//”My code goes here”//
return this.getInnovator().newResult("Your code ran successfully");
}