You need to sign in to do that
Don't have an account?
Nicole Chang_
Edit the data type of a standard Event field
Hello everyone,
There's standard field on Event "WhatId", data type is Lookup (Contract,Account,Opportunity,Lead,Contact,....)
Is there anyway to change data type to Lookup only to those objects (Account,Opportunity,Lead,Contact) & remove the rest please?
Thank you so much!
There's standard field on Event "WhatId", data type is Lookup (Contract,Account,Opportunity,Lead,Contact,....)
Is there anyway to change data type to Lookup only to those objects (Account,Opportunity,Lead,Contact) & remove the rest please?
Thank you so much!
Account =001,
Opportunity=006,
Lead=00Q,
Contact=003,
Contract= 800
See commonly used object's prefixes list on https://www.salesforceben.com/salesforce-object-key-prefix-list/
Detailed prefixes list: https://help.salesforce.com/s/articleView?id=000325244&type=1
Hope this helps. Thank you
All Answers
We cannot change the standard field functionality. If we want a particular lookup only we have to write a validation rule on that object such that starting id should be 001 or 005 something related to it.
Hope this helps. Thank you.
From what Ive been searching so far, looks like we can create a custom field also?
This is validation rule on Event object that will only allow if whatid is Acount,Contact,Opportunity and Lead
If this information helps, please mark the answer as best. Thank you
Account =001,
Opportunity=006,
Lead=00Q,
Contact=003,
Contract= 800
See commonly used object's prefixes list on https://www.salesforceben.com/salesforce-object-key-prefix-list/
Detailed prefixes list: https://help.salesforce.com/s/articleView?id=000325244&type=1
Hope this helps. Thank you
Example: https://cti712-dev-ed.lightning.force.com/lightning/r/car__c/a2i6F000007jJJCQA2/view
a2i is my custom object(car__c)'s prefix for the record Id a2i6F000007jJJCQA2