• Kevin Murray
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies
I'm at Challenge 6 and I'm stuck. I've tested that my code produces the Chatter post to the group, and my AnnouncementQueueable class implements Queuable. I've implemented the excecute() method. But still I get this error:

"Challenge Not yet complete... here's what's wrong: 
Ensure that you implement the Queueable interface in the announcementsQueueable class."

Anyone have an answer? I'd love to complete my PDII before end of year. This feels like a testing defect.
Hi,

i am getting below error while completing "Lightning Experience Rollout Specialist Superbadge Step #8"
Challenge Not yet complete... here's what's wrong:
Knowledge must be enabled for the org.
.User-added image


i have alredy enabled knowledge settings..

User-added image

Thank you.

I've used the picklist example from this link as a starting point:
https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/src/classes/MetadataServiceExamples.cls

I've run execute anonymous passing in the parameters. The picklist gets updated with the new value, but marks the previous values as inactive.
Any ideas?

Snippet of code running the update:

webService static void updatePicklistField(String picklistToUpdate, String picklistLabel, String newPicklistValue)
    {

		MetadataService.MetadataPort service = createService();
        MetadataService.CustomField customField = new MetadataService.CustomField();
        customField.fullName = picklistToUpdate; //This is the picklist field. This must in the format Object.Field (append __c for custom object/field)
        customField.label = picklistLabel; //This field is needed in update
        customField.type_x = 'Picklist';
        metadataservice.Picklist pt = new metadataservice.Picklist();
        pt.sorted= false;
        metadataservice.PicklistValue newPlValue = new metadataservice.PicklistValue();
        newPlValue.fullName  = newPicklistValue; //This is the new picklist value
        newPlValue.default_x =false ;
        pt.picklistValues = new list<metadataservice.PicklistValue>{newPlValue};
        customField.picklist = pt ;
        List<MetadataService.SaveResult> results =
            service.updateMetadata(
                new MetadataService.Metadata[] { customField });
        handleSaveResults(results[0]);
    }

Run Execute Anonymous below:

MetadataHandler.updatePicklistField('Account.Access_Type__c','Access Type','Metadata');

Results in the following. note the now one active value and newly marked inactive values:
User-added image