Restrict to only one contact in MVG Contact for an Activity
Requirement is to allow one contact that can be added to a contact MVG against an Activity(Parent). If more than 1 contact record is added an error message should be prompted to the user as “Only 1 Contact can be added for an Activity“
Follow the below steps to implement this requirement:
In Siebel Tools, query the MVG applet and write a below line of code in the Server side event called WebApplet_PreInvokeMethod.
Compile the applet and lauch client application to see that error is thrown to the UI when user selects more than 1 contact in the MVG applet as shown below: