• VasanthKumar
  • NEWBIE
  • 30 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies

Hi all,

I am facing an issue in retrieving queue name by querying the QSObject.

 

List<QueueSobject> lstQueueName = [Select Id, SobjectType, QueueId,Queue.Name from QueueSobject where SobjectType = 'Case' AND QueueId =: '00G30000002conp'];
system.debug(lstQueueName[0].queue.Name+'---');

 

The above query returns me the Queue Label but wat i need is the Queue name as u can see on the UI when u open any Queue.

 

Waiting for a quick reply,

Thanks,
Sridhar

 

Hi,

 

 

I am trying to query and retrieve approval history through SOSL.   I can get actor, stepstus information from processsInstanceStep. However, I can not find the name of the steps.  Can anyone plz let me know where can I find it.

 

Thanks.

Hi all,

I am facing an issue in retrieving queue name by querying the QSObject.

 

List<QueueSobject> lstQueueName = [Select Id, SobjectType, QueueId,Queue.Name from QueueSobject where SobjectType = 'Case' AND QueueId =: '00G30000002conp'];
system.debug(lstQueueName[0].queue.Name+'---');

 

The above query returns me the Queue Label but wat i need is the Queue name as u can see on the UI when u open any Queue.

 

Waiting for a quick reply,

Thanks,
Sridhar

 

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

Can someone assist?  I'm receiving the subject error message with the following code.

 

trigger CreateBOM on Commission__c (after insert) {
    List<Commission__c> cpay = new List<Commission__c>();
//    List<Opportunity> copty = new List<Opportunity>();
    for(Opportunity obom : [select Id, Product_Family__C from Opportunity where Id = :cpay.Opportunity_Name__c]){

        for(OpportunityLineItem bomoli : [Select UnitPrice, Quantity, PricebookEntry.Product2.ProductCode,
                                   PricebookEntry.Product2Id, ListPrice, PricebookEntry.Product2.Name, Description
                                   From OpportunityLineItem where OpportunityId = :obom.Id]) {

        If(obom.product_family__c == 'Software'){
            Commission_Request_BOM__c[] ast = new Commission_Request_BOM__c[]{};
            Commission_Request_BOM__c bom = new Commission_Request_BOM__c();
//            for(OpportunityLineItem ol: BOMOLI){
                bom = new Commission_Request_BOM__c();
                bom.Opportunity__c = bomoli.Id;
                bom.Product__c = bomoli.PricebookEntry.Product2.Name;
                bom.Quantity__c = bomoli.Quantity;
                bom.List_Price__c =  bomoli.ListPrice;
                bom.Line_Description__c = bomoli.Description;
                bom.Product_Code__c = bomoli.PricebookEntry.Product2.ProductCode;
                insert bom;
//                }
          }
         }
     }     
}

There is a visual force page in account detail page section , a button  in the visualforce should redirect to another visual force page which has to open in same page but the porblem here is when clicking on the button new visual force page is opening with in the same account detail section.

  • March 22, 2012
  • Like
  • 0