• Darshee Mehta
  • NEWBIE
  • 5 Points
  • Member since 2014
  • Georgia State University


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Hi, I would need some help to write a test class for a webservice
Here WCT_LCA__c is my custom object.

global class WCT_UpdateLCARecordsFlags {
   
    WebService static String updateFlags(String recordId)
    {
        system.debug(recordId);
        WCT_LCA__c rec;
        try{
            rec=new WCT_LCA__c(id=recordId);
            rec.WCT_Updated_Fragomen_record__c=false;
            update rec;
       
        }Catch(Exception e)
        {
       
        }
       
        return 'Thanks for reviewing the LCA record.';
       
    }

}
Hi, I would need some help to write a test class for a webservice
Here WCT_LCA__c is my custom object.

global class WCT_UpdateLCARecordsFlags {
   
    WebService static String updateFlags(String recordId)
    {
        system.debug(recordId);
        WCT_LCA__c rec;
        try{
            rec=new WCT_LCA__c(id=recordId);
            rec.WCT_Updated_Fragomen_record__c=false;
            update rec;
       
        }Catch(Exception e)
        {
       
        }
       
        return 'Thanks for reviewing the LCA record.';
       
    }

}

Hi,

 

How to get the stepname Of approval process in salesforce using SOQL or any other APIs.

 

 

Thanks.....

Suma.

 

 

  • August 23, 2013
  • Like
  • 0

We have a Approval Processees developed within Salesforce on Opportunity. However, since Salesforce does not provide any reporting capabilities on these Processees, we are going to populate different object to then use for reporting, on the Opp Trigger.

 

We can get most of the information from the Process related objects within Salesforce, but I do not see the name of the Steps or Process in these objects.

 

Is there a way to get the name of the Processes Steps and Processes Name, which we would to display in our reports, either by doing SOQL or by using Approval related APIs.

 

Thanks

 

Regards.

 

  • October 01, 2009
  • Like
  • 0