• Raoul Lake
  • 0 Points
  • Member since 2015

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 1
Hi, am getting error message re Invalid Type in the Developer Console for an Apex class for a provided solution to a Visualforce Controller Training Course (exercise 3-4, Creating a Controller Using an Object Wrapper Class).  Error is saying that "MyOutstandingReview" is an invalid type.  Would appreciate direction on what I need to do to fix this error please.

The line throwing the error is (line 79 in the supplied code):
 public List<MyOutstandingReview> myOutstandingReviews{

The fuller context for the exercise in the training is:
  // TODO:     Create a public list "myOutstandingReviews", which contains elements
    //                 of type MyOutstandingReview. Override the getter.
    //                If null (on the first access), instantiate a new list.
    //                Iterate over the list of review__c records called "reviews" in a FOR loop.
    //                For each Review__c record, instantiate a new object 
    //                of type MyOutstandingReview. Pass the iteration variable to the 
    //                constructor. Add the new object to the list "MyOutstandingReviews".
    //                Always return the newly created list "MyOutstandingReviews"
        //                Use the default setter.
    public List<MyOutstandingReview> myOutstandingReviews{
            // perform the logic to find the Reviews that have not yet been completed for the current Position
            if (myOutstandingReviews == null) {
                myOutstandingReviews = new List<MyOutstandingReview>();
                for(Review__c review:reviews){
                    MyOutstandingReview record = new MyOutstandingReview(review);
            return myOutstandingReviews;

Thank you.
All examples that I have seen so far show how to add a custom button/action on Leads List View. I am looking for a way to launch a flow from a custom buttom/action from Account List View.

The Flow is to create account and related contact records and it needs to happen only through a flow, as the customer wants point and click customization.

User-added image

So far, I have only been able to launch the flow from within a record- by adding the action on the account page layout. However, my requirement is to launch the flow from the Account List View itself and not requiring the user to first have to select any other record. I have also tried creating a VF page to launch the flow from.

The issue that I am running into is

1- I do NOT see 'List View' as an option when I navigate to 'Search Layouts' on the Account Object and the 'Default Layout' does not have the custom button that I created

User-added image

Default Layout- supports only buttons that create or update a record

User-added image

2- I do see 'List View' listed when I navigate TO 'Search Layouts for Salesforce Classic' on the Account Object, however, the button to launch flow still does not show up under custom buttons and the only buttons that show up are related to either creating/updating a record. Also, I am sure if seeing the button to launch a flow under Search Layouts for Salesforce Classic would do me any good as I am working in Lightning
User-added image
User-added image

Direction on how to proceed ahead is greatly appreciated. Thank you in advance!