You need to sign in to do that
Don't have an account?
KR_Force
Hi, in below method Ultimate_Parent_Revenue__c field is getting updated fine but the "Ultimate_Parent_Vertical__c" field is not getting updated at all . i see the value coming in for 'Parent.OS_Industry_Sector__c' but its not refelecting on "Ultimate_Parent_Vertical__c". can someone please into it and help to fix the issue?
Custome Field is not getting updated
Hi, in below method Ultimate_Parent_Revenue__c field is getting updated fine but the "Ultimate_Parent_Vertical__c" field is not getting updated at all . i see the value coming in for 'Parent.OS_Industry_Sector__c' but its not refelecting on "Ultimate_Parent_Vertical__c". can someone please into it and help to fix the issue?
- for(Account a: uChild)
- {
- //Account uParent = uChildMap.get(a.id);
- //System.debug('Parent ID**:'+ a.ParentId);
- if (a.ParentId ==null){
- System.debug('Condition 6**:');
- a.Ultimate_Parent_Vertical__c = a.OS_Industry_Sector__c;
- a.Ultimate_Parent_Revenue__c = a.AnnualRevenue;
- // uChild1.add(a);
- }
- else if (a.Parent.ParentId ==null){
- System.debug('Condition 7**:'+a.Parent.OS_Industry_Sector__c+a.Parent.AnnualRevenue);
- a.Ultimate_Parent_Vertical__c = a.Parent.OS_Industry_Sector__c;
- a.Ultimate_Parent_Revenue__c = a.Parent.AnnualRevenue;
- //uChild1.add(a);
- }
- else if (a.Parent.Parent.ParentId ==null){
- System.debug('Condition 8**:');
- a.Ultimate_Parent_Vertical__c = a.Parent.Parent.OS_Industry_Sector__c;
- a.Ultimate_Parent_Revenue__c = a.Parent.Parent.AnnualRevenue;
- //uChild1.add(a);
- }
- else if (a.Parent.Parent.Parent.ParentId ==null){
- System.debug('Condition 9**:');
- a.Ultimate_Parent_Vertical__c = a.Parent.Parent.Parent.OS_Industry_Sector__c;
- a.Ultimate_Parent_Revenue__c = a.Parent.Parent.Parent.AnnualRevenue;
- //uChild1.add(a);
- }
- else if (a.Parent.Parent.Parent.Parent.ParentId ==null){
- System.debug('Condition 10**:');
- a.Ultimate_Parent_Vertical__c = a.Parent.Parent.Parent.Parent.OS_Industry_Sector__c;
- a.Ultimate_Parent_Revenue__c = a.Parent.Parent.Parent.Parent.AnnualRevenue;
- //uChild1.add(a);
- }
- }
- Update uChild;
- }
Vamsi Krishna
can you check the field level security of the Ultimate_Parent_Vertical__c field and see if it has write access setup properly ?