I've tried numerous times to get a script to work that will show as an error message (in Red) that the customer is on hold. There is an old article showing the steps for "Customer on Hold" for CRM 7.0. Current client is on 7.3 sp3 and we are unable to get it to show anything. Below is the script that I have been trying to use in the Custom Content in the Company Entry Screen. ARCUS is setup as a connection to the Sage 300 datatable.
<script>
crm.ready(function ()
{
var ArAccpacCust = eWare.FindRecord("ARCUS", "IDCUST='" + Values('comp_idcust') + "'");
var bOnHold = ArAccpacCust('SWHOLD');
{
if (bOnHold == 1) {
crm.errorMessage("On Hold");
}
}
})
</script>
Any help would be appreciated.