Quick Question, I have an soql query that looks like this:
List<Service_Instance__c> Servic = [Select Account__c, Account_Customer_Account_Number__c, Airports__c, Local_Service__c, Location__c, Terminal__c, Physical_ID__c
from Service_Instance__c where USI__c =:usi1 limit 1];
I want to assign Account_Customer_Account_Number__c to a string for the next query I tried the following :
AccNum = [Select Account_Customer_Account_Number__c
from Service_Instance__c where USI__c =:usi1 limit 1];
and
AccNum = Servic[0].Account_Customer_Account_Number__c;
I've also tried to change the AccNum from String to Integer to decimal and nothing worked.
I want to sort this out in order for this query to work :
List<Account> AccName = [Select Name, Customer_Account_Number__c
from Account where Customer_Account_Number__c =:AccNum limit 1];
Account_Customer_Account_Number__c
withUSI__c
.Are you sure both are same.