Here it is:
if({!CONTAINS("AUSTRALIA:FIJI", UPPER(Opportunity.Account.BillingCountry ))} || ({!Opportunity.end_user_account__r.BillingCountry } != null && {!CONTAINS("AUSTRALIA:FIJI", UPPER(Opportunity.end_user_account__r.BillingCountry ) )}))
{window.alert("Test message"}
}
Its not working. Above script states that for any opportunity having Account Country or End User Account Country (End User Account is a lookup Account field at Opportunity level) Australia or Fiji, alert pop up should appear.
In addition to this, it should popup only if the opportunity is just created.
Thanks
2 respostas
I did something similar but used a simplier method with process builder. This created custom alerts in the top right hand corner (the bell) anytime we would get a new case. You can set the permission set to whatever criteria you want but it would be easier then creating a customer script.