I created formula field and is automatically populated the value and its working properly,please find the below formula field code
IF( ISBLANK(Community__c), Name, Community__r.Name & " > " & Name )
Above code working properly while creating the record manually and the formula field is automatically created but the issue with
Community__r (lookup relation) while mapping value to the relation field I'm facing the field is not writable issue. Please find the below code
Community__c domain = new Community__c(); domain.External_Id__c= communityid; **domain.Community__r= new Community__c(External_Id__c=parentid);** datadomainrelationList.add(domain);
I'm facing this issue only for relation field (
Community__r) but while mapping value to the Name field I didn't faced any issue.
Please find the below issue ,I'm facing this issue
Please find below code image as well,I tried with these two ways but the issue is same
Can anyone please help me on this issue ?