Skip to main content
I'm having great difficulty assigning and testing account ids that I've created in a custom object.

I want to compare accounts

if (thisAc == thatAc){

} //endif

and tried

if (thisAc.id == thatAc.id){

​} //endif

My custom object has an account field: MyCustomObject__c has referenceCompany__c

I can't seem to copy it to another custom object - even a temporary Account

starting from MyCustomObject my1...

MyOtherCustomObject myOco = new(MyOtherCustomObject);

myOco.copiedCompany__c = my1.referenceCompany__c;

I've tried:

Account thisAc = .my1.referenceCompany__c;

and

Account thatAc= .my1.referenceCompany__r; (which seems close to the answer).

Any suggestions?

Thanks in advance.

 
7 件の回答
  1. 2016年4月29日 2:14
    send your code your probleme is not understanding 
0/9000