You need to sign in to do that
Don't have an account?
ManojKumar Muthu
Formula to display data in a field by passing Input from another field.
Hi All,
I have a requirement where I have to display "Contact Name" or "User Name" based on the Id given a particular field.
For example: Here my Input field is "CreatedBy__c" and my output field is "Contact_Name__c",
Contact Id is 0030l00000IcLXE (Draco) and user Id is 0050l000000Muxz(Ajay).
If CreatedBy__c = 0030l00000IcLXE then the Contact_Name__c = Draco like wise if CreatedBy__c = 0050l000000Muxzthen the Contact_Name__c = Ajay.
Can someone help me on this
I have a requirement where I have to display "Contact Name" or "User Name" based on the Id given a particular field.
For example: Here my Input field is "CreatedBy__c" and my output field is "Contact_Name__c",
Contact Id is 0030l00000IcLXE (Draco) and user Id is 0050l000000Muxz(Ajay).
If CreatedBy__c = 0030l00000IcLXE then the Contact_Name__c = Draco like wise if CreatedBy__c = 0050l000000Muxzthen the Contact_Name__c = Ajay.
Can someone help me on this
All Answers
Thanks
Which field you are referring here as "IdField__c"??
The "NameField__c" is the one to be populated with the User name or Contact name.
Error: Compile Error: Variable does not exist: CreatedByType__c at line 27 column 13
Line: if (CaseComments == 'user')
Line: String objectName = obj.CreatedBy__c.getSObjectType().getDescribe().getName();
Below the error I am getting,
Error: Compile Error: Method does not exist or incorrect signature: void getSObjectType() from the type String at line 14 column 47