function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sourav PSourav P 

How to create a VR to an Event related to a Lead

Hi,
I have the below requirement,
In the Lead, i have the Event as a related object, In the Event , i have a field called "IQM Locked" , Once its ticked, i have a VR written that the users couldn't modify the event any more. But its creating issue when , converting the Lead.
As when i am converting the Lead to Contact or Account, there is a change happening in the event record as well, on Name (WhoID) and Related To (WhatID). and its triggering the VR, which doesn't allow me to convert the Lead and throwing the VR error. 
How to resolve this ?
Below is my current VR written, what changes i need to do here that, 
the Lead can be converted and simultaneously users shouldn't be able to change the IQM locked events, even in the current Lead, Converted Contacts or Account ?
AND (

RecordType.Name='Initial Qualifying Meeting',
IQM_Locked__c,
NOT(CONTAINS($Profile.Name,'System Admin'))
)

 
Robert BitterRobert Bitter
Wwhen i am converting the Lead to Contact or Account, there is a change happening in the event record as well, on Name (WhoID) and Related To (WhatID). and its triggering the VR, which doesn't allow me to convert the Lead and throwing the VR error. 
How to resolve this ? https://www.mygroundbiz.website/
Roni UdodRoni Udod
I have been cooperating for many years with only one proven company https://iwanta.tech/ In their work, specialists use only the latest technology and keep up with the times. So if you have any questions, you can go to the website and get a free consultation