When i run the method in anonymous window i am getting the output if i pass 15digits of record id i am not getting output when i pass 18 digits record id
what is the issue please someone help
I have done the same thing there it is working why not here
@AuraEnabled(cacheable=true)
public static List<OrderDestinationItem__c> programOrderRecapReportData(String programId)
{
System.debug(‘programId—-‘+programId);
//We are fetching all the order destination list for the incoming program id and the account name
List<OrderDestinationItem__c> orderDestinationItemList = [SELECT Id,Name,OrderName__c,Program_Name__c,Quantity__c,Total_Line_Amount__c,CreatedDate,CreatedById,POS_Item__r.Vendor__c,OrderDestination__r.User_Division__c,OrderDestination__r.ShipToName__c,OrderDestination__r.ShipToCompany__c,OrderDestination__r.AddressBook__r.Address__c,OrderDestination__r.AddressBook__r.City__c,OrderDestination__r.AddressBook__r.StateCode__c,OrderDestination__r.AddressBook__r.Zip__c,OrderDestination__r.AddressBook__r.Email__c,OrderDestination__r.AddressBook__r.Phone__c,OrderDestination__r.OrdStatus__c,POS_Item__r.Brand__r.Brand_Name__c,POS_Item__r.Type_of_Item__r.Item_Type__c,POS_Item__r.Item_No__c,POS_Item__r.Item_Name__c,POS_Item__r.Pack_Of__c,POS_Item__r.Price__c,POS_Item__r.Description__c FROM OrderDestinationItem__c WHERE Program_ID__c =:programId AND Account_Name__c=:myAccount.Name];
System.debug(‘orderDestinationItemList—‘+orderDestinationItemList);
System.debug(‘orderDestinationItemList size—‘+orderDestinationItemList.size());
return orderDestinationItemList;
}
programId when it is coming from LWC i am getting 18digits of record id