• Shailforce
  • NEWBIE
  • 4 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 7
    Replies
I have customer portal enabled in my org. I am using user with profile - Customer Portal Manager Standard. I am unable to see the Account Tab even -
1) Have View and Edit access from profile
2) Given Portal Super User access from profile
3) Added Account tab in Customer Portal.
Thanks in Advance
I have customer portal enabled in my org. I am using user with profile - Customer Portal Manager Standard. I am unable to see the Account Tab even -
1) Have View and Edit access from profile
2) Given Portal Super User access from profile
3) Added Account tab in Customer Portal.
Thanks in Advance
List<Contact> accounts=[SELECT Email FROM Contact WHERE AccountId ='001i000000g7erl' ORDER BY Email ASC NULLS FIRST LIMIT 3];
list<Id> emailid=new list<id>(); 
for(id acc: Email)
{
acc.emailid[Email];
}
wat is worng in this can u explain me im new to apex code

Hi,

 

I'm trying to write an apex test class

 

In eclipse Schema page I type the following SOQL request:

 

SELECT c.id FROM case c WHERE c.subject = 'Test Case' LIMIT 1

It works but when I'm trying to test this code:

@isTest
private class testCaseTrigger {
    static testMethod void testCase() {
        Test.startTest();
        Case cs = [SELECT c.id FROM case c WHERE c.subject = 'Test Case' LIMIT 1];
        
        cs.CR_Delivery_Version__c = '7.2';
        update cs;
        
        Case newCase = [SELECT crtargetrelease__c FROM case WHERE id =: cs.id];
        system.assertEquals('MEGA 2009', newCase.CRTargetRelease__c);    
        
        Test.stoptest();
    }
}

 I get the following error : 'List has no rows for assignement to SObject'

 

I also tried the following: 'Select id FROM case', and I get also an empty list.

What is the problem?

 

thanks,

 

 

hi i have a query i n my controller as DataLoadTest__c selectedRecord = [select Id,name,city__c,country__c,phone__c from DataLoadTest__c where id=:rId limit 1]; how to write test method for this query. it showing exception as System.QueryException: List has no rows for assignment to SObject