• Zeel Sheth
  • NEWBIE
  • 10 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 2
    Replies
hii,
 I'm doing the Service cloud superbadge challenge and  I get this error
Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: FSYOLOHW
hii,
  i am doing the service cloud superbadge challenge and I get this error.

Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: FSYOLOHW
hii everyone,
  I'm stuck here 'We can't find the 'Send Email' macro. Ensure the Macro sends an email to the customer.' in Superbadge challenge 7. I'm getting mail for same.
Request you to help me to resolve this issue.
Thanks in advance,
Zeel
hii,
  I want to display 15000 records in one page because i want to select all records. is it possible ? if yes , pls suggest me.

component
<aura:component controller="ZipCodeList">
    
    <aura:attribute name="terr_name" type="String" default=""/>
    
    <aura:attribute name="user" type="ET_MOSI_Zip_Code_Territory_Mapping__c" default="{ sobjectType: 'ET_MOSI_Zip_Code_Territory_Mapping__c'}"/>
    <aura:attribute name="rows" type="Map[]"/>
    <aura:attribute name="cols" type="Map[]"/>
    <aura:attribute name="selectedRows" type="List"/>
    <aura:attribute name="selection" type="List" access="PRIVATE"/>
    <aura:attribute name="user_iid" type="string"/>
    <aura:attribute name="selectedZipCodes" type="List"/>
    <aura:attribute name="isSelected" type="boolean"/>
    <aura:attribute name="isSelectAll" type="boolean" />
    <aura:attribute name ="zcode" type="ET_MOSI_Zip_Code_Territory_Mapping__c" />
    <aura:attribute name="idlink" type="string" />
    <aura:handler name="init" value="{!this}" action="{!c.init}" />
    <aura:attribute name="options" type="List" access="PRIVATE"/>
    <aura:attribute name="selectedValue" type="String" access="PRIVATE"/>
    
    <lightning:card title="Enter Parameter" iconName="standard:search">
        <div class="slds-form slds-p-around_x-small">
            <lightning:layout horizontalAlign="space" multipleRows="true">
                <lightning:layoutItem size="12"
                                      mediumDeviceSize="12"
                                      padding="around-small">
                    
                    <lightning:select name="terrid" label="Select a Territory:" aura:id="terrid" value="{!v.selectedValue}">
                        <aura:iteration items="{!v.options}" var="option">
                            <option text="{!option.label}" value="{!option.label}" selected="{!option.selected}"/>
                        </aura:iteration>
                    </lightning:select>
                    FSE Name:<force:inputfield aura:id="user_id"
                                               value="{!v.user.Service_User__c}"
                                               
                                               /> 
                    
                </lightning:layoutItem>
                
            </lightning:layout>
            
            
            
        </div>
    </lightning:card>
    
    
    <div class="slds-form slds-p-around_x-small">
        <lightning:layout horizontalAlign="space" multipleRows="true">
            <lightning:layoutItem size="12"
                                  
                                  mediumDeviceSize="11"
                                  padding="around-small">
                
            </lightning:layoutItem>
            <lightning:layoutItem size="12"
                                  mediumDeviceSize="1"
                                  padding="around-small">
                <lightning:button onclick="{!c.onInit}">Go</lightning:button>
            </lightning:layoutItem>
        </lightning:layout>
        
        
        
    </div>
    
    <lightning:card title="Zip Code List" iconName="standard:account">
        <table class="slds-table slds-table_bordered slds-table_striped slds-table_cell-buffer slds-table_fixed-layout">
            <thead>
                <tr class="slds-text-heading_label"> 
                    <th scope="col"><div class="slds-truncate" title="Select"><ui:inputCheckbox change="{!c.selectAllOpp}" 
                                                                                                aura:id="selectAll"/></div></th>   
                    <th scope="col"><div class="slds-truncate" title="ZipCode">Zip Code</div></th>
                    <th scope="col"><div class="slds-truncate" title="Territory Name">Territory Name</div></th>
                    <th scope="col"><div class="slds-truncate" title="Region">Service Region</div></th>
                    <th scope="col"><div class="slds-truncate" title="FSE">FSE Name</div></th>
                    
                </tr>
            </thead>
            <aura:iteration var="x" items="{!v.zcode}" >
                <tbody>
                    <!-- Use the Apex model and controller to fetch server side data -->
                    <tr>
                        <td><div class="slds-truncate"><ui:inputCheckbox aura:id="checkOpp" text="{!x.Id}"/></div></td>
                        <td><div class="slds-truncate" title="{!x.Name}"><a href="{!'/lightning/r/ET_MOSI_Zip_Code_Territory_Mapping__c/'+x.Id+'/view'}">{!x.Name}</a></div></td>
                        <td><div class="slds-truncate" title="{!x.Service_Territory__c}">{!x.Service_Territory__c}</div></td>
                        <td><div class="slds-truncate" title="{!x.Service_Region__c}">{!x.Service_Region__c}</div></td>
                        <td><div class="slds-truncate" title="{!x.Service_User__r.Name}">{!x.Service_User__r.Name}</div></td>
                        
                    </tr>
                </tbody>
            </aura:iteration>
        </table>
    </lightning:card>
    <lightning:layout>
        <lightning:layoutItem size="12"
                              mediumDeviceSize="11"
                              padding="around-small">
            
        </lightning:layoutItem>
        <lightning:layoutItem size="12"
                              mediumDeviceSize="1"
                              padding="around-small">
            <lightning:Button onclick="{!c.update}" >Update</lightning:Button>
        </lightning:layoutItem>
        
    </lightning:layout>
    
</aura:component>

controller.js
({
    onInit: function( component, event, helper ) {
        // proactively search on component initialization
        var terr_name = component.get( "v.selectedValue" );
        
        helper.handleSearch( component,event, terr_name );
    },
    
    init: function (cmp, event, helper) {
        helper.simulateServerRequest(
            $A.getCallback(function handleServerResponse(serverResponse) {
                cmp.set('v.options', serverResponse.terr_name);

                
                cmp.set('v.selectedValue', serverResponse.selectedterr);
            })
        );
    },
    
    selectAllOpp : function(component, event, helper)
    {
        var selectedHeaderCheck = event.getSource().get("v.value");
        var getAllId = component.find("checkOpp"); 
        if(! Array.isArray(getAllId)){
            if(selectedHeaderCheck == true){ 
                component.find("checkOpp").set("v.value", true);    
            }else{
                component.find("checkOpp").set("v.value", false);
            }
        }else{
            // check if select all (header checkbox) is true then true all checkboxes on table in a for loop  
            // and set the all selected checkbox length in selectedCount attribute.
            // if value is false then make all checkboxes false in else part with play for loop 
            // and select count as 0
            if (selectedHeaderCheck == true) {
                for (var i = 0; i < getAllId.length; i++) {
                    component.find("checkOpp")[i].set("v.value", true);
                }
            } else {
                for (var i = 0; i < getAllId.length; i++) {
                    component.find("checkOpp")[i].set("v.value", false);
                }
            } 
        }  
    },
    
     update: function( component, event, helper ) {
        // proactively search on component initialization
        var getId= component.get("v.zcode");
         var t = component.get("v.zcode").length;
         alert(t);
        //var action2 =component.get("c.viewSelected");
        var getAllId = component.find("checkOpp");
        var user_id = component.get( "v.user.Service_User__c" );
        alert(user_id);
        var selctedRec = [];
        if(! Array.isArray(getAllId)){
            if (getAllId.get("v.value") == true) {
                selctedRec.push(getAllId.get("v.text"));
            }
        }else{
            
            for (var i = 0; i < getAllId.length; i++) {
                if (getAllId[i].get("v.value") == true) {
                    selctedRec.push(getAllId[i].get("v.text"));
                }
            }
            
        } 
        component.set('v.selectedZipCodes', selctedRec);
        var selectedrows1 = component.get( 'v.selectedZipCodes' );
     
        helper.updateFields( component,event,helper, selectedrows1 ,user_id);
    }, 
    
   
})

helper.js
({
    
    handleSearch: function( component,event, terr_name ) {
        var action = component.get( "c.searchList" );
        action.setParams({
            terr_name: terr_name
        });
        action.setCallback( this, function( response ) {
            var name = response.getState();
            component.set("v.zcode", response.getReturnValue());
            component.find("selectAll").set("v.value", false);
            });
            
        $A.enqueueAction( action );
        
         
        
    },
    
    simulateServerRequest: function (onResponse) {
        setTimeout(function () {
            var serverResponse = {
                selectedterr: 'Ahemdabad',
                terr_name: [
                    { id: 1, label: 'Ahemdabad', selected: true },
                    { id: 2, label: 'Baroda' },
                    { id: 3, label: 'Rajkot' },
                    { id: 4, label: '101 - Portland' },
                    { id: 5, label: '203 - NYC' }
                ]
            };

            onResponse.call(null, serverResponse);
        }, 2000);
    },
    
    updateFields: function(component, event, helper,selectedrows1,user_id) {
       
        
        var action1 = component.get('c.Update2');
            
            
        action1.setParams({
            recordid: selectedrows1,
            user_id: user_id
        });
       
        action1.setCallback(this, function(response) {
            
            var state = response.getState();
            alert(state);
            if (state === "SUCCESS") {
                console.log(state);
                $A.get('e.force:refreshView').fire();
            }
    });
        $A.enqueueAction(action1);
        
        var urlevent = $A.get("e.force:navigateToURL");
        urlevent.setParams({
            
        })
        },
})

apex class
global class ZipCodeList {
    @AuraEnabled
    public static List<ET_MOSI_Zip_Code_Territory_Mapping__c> searchList( String terr_name ) {
        List<ET_MOSI_Zip_Code_Territory_Mapping__c> list1 = new List<ET_MOSI_Zip_Code_Territory_Mapping__c>();
        if ( String.isNotBlank( terr_name )     && terr_name.length() > 1 ) {
            List<List<SObject>> searchResults = [
                FIND :terr_name
                RETURNING ET_MOSI_Zip_Code_Territory_Mapping__c(
                    Id, Name, Service_User__r.Name ,Service_Territory__c,Service_Region__c  limit 1900   //limit for implement
                )
            ];
            list1 = searchResults[0];
        }
        return list1;
    }
    
    @AuraEnabled
    public static void  Update2(List<string> recordid, string user_id )
    {
        
        //List<string> recordid =  params[0].recordid;
        //string userId =  params[0].user_id;
        system.debug('hey'+recordid);
        system.debug(user_id);
        List<ET_MOSI_Zip_Code_Territory_Mapping__c> list1 = new List<ET_MOSI_Zip_Code_Territory_Mapping__c>();
        
        List<ET_MOSI_Zip_Code_Territory_Mapping__c> srsLst= [select Id, Name, Service_User__c ,Service_Region__c,Service_Territory__c from 
                                                                 ET_MOSI_Zip_Code_Territory_Mapping__c
                                                                 where Id in :recordid];
        
        for(ET_MOSI_Zip_Code_Territory_Mapping__c Z : srsLst)
        {
            Z.Service_User__c = user_id;
            list1.add(Z);
        }
        if(list1.size()>0){
            update list1;
        }
        
    }
    global class UpdateActionRequest
    {
        @AuraEnabled
        global List<string> recordid;
        
        @AuraEnabled
        global string user_id;
    }
}

also, how I use batch class in this . I have learned about this but couldn't understand perfectly.
thanks in advance,
Zeel
hii everyone,

I have 2 aura component, one component containing one button to open another aura component. I am passing userid input value using the application event but I  get the value zipcodeslisttcontroller.js. 
pls correct me.

zip_code_get_params.cmp

<aura:component controller="ZipCodeList">
    <aura:registerEvent name="zipcodelloaded" type="c:zipcodelloaded"/>
    <aura:handler name="init" value="{!this}" action="{!c.onInit}" includefacets="true"/>
    <aura:attribute name="terr_name" type="String" default=""/>
    
    <aura:attribute name="user" type="ET_MOSI_Zip_Code_Territory_Mapping__c" default="{ sobjectType: 'ET_MOSI_Zip_Code_Territory_Mapping__c'}"/>
    <lightning:card title="Enter Parameter" iconName="standard:search">
        <div class="slds-form slds-p-around_x-small">
            <lightning:layout horizontalAlign="space" multipleRows="true">
                <lightning:layoutItem size="12"
                                      mediumDeviceSize="12"
                                      padding="around-small">
                    <lightning:input
                                     label="Territory Name"
                                     variant="label-hidden"
                                     value="{!v.terr_name}"
                                     placeholder="Enter Territory Name"
                                     /> 
                    
                </lightning:layoutItem>
                
            </lightning:layout>
            
            
            
        </div><!--onchange="{!c.onSearchTermChange}"-->
    </lightning:card>
    FSE Name:<force:inputfield
                               
                               aura:id="user_id"
                               value="{!v.user.Service_User__c}"
                               change = "{!c.UserChange}"
                               /> 
    
        <div class="slds-form slds-p-around_x-small">
            <lightning:layout horizontalAlign="space" multipleRows="true">
                <lightning:layoutItem size="12"
                                      
                                      mediumDeviceSize="11"
                                      padding="around-small">
                    
                </lightning:layoutItem>
                <lightning:layoutItem size="12"
                                      mediumDeviceSize="1"
                                      padding="around-small">
                    <lightning:button onclick="{!c.onInit}">Go</lightning:button>
                </lightning:layoutItem>
            </lightning:layout>
            
            
            
        </div><!--onchange="{!c.onSearchTermChange}"-->
    
</aura:component>

controller.js
({
    onInit: function( component, event, helper ) {
        // proactively search on component initialization
        var terr_name = component.get( "v.terr_name" );
        var user_id = component.get( "v.user.Service_User__c" );
        //alert(user_id);
        helper.handleSearch( component,event, terr_name,user_id );
    },
    
   })

hepler.js
({
    // code in the helper is reusable by both
    // the controller.js and helper.js files
    handleSearch: function( component,event, terr_name,user_id ) {
        var action = component.get( "c.searchList" );
        action.setParams({
            terr_name: terr_name
        });
        action.setCallback( this, function( response ) {
            var event = $A.get( "e.c:zipcodelloaded" );
            event.setParams({
                "list1": response.getReturnValue(),
                //"user_idd": component.get("v.user_id")
            });
            event.fire();
        });
        $A.enqueueAction( action );
        
         var userid = component.find("user_id").get("v.value");
        alert(userid);
        console.log("hey"+userid);
        var appEvent = component.getEvent("zipcodelloaded"); 
        appEvent.setParams({
            "user_idd":userid}); 
          
            appEvent.fire(); 
        //alert("hey"+appEvent.getParam("user_idd"));
        
    }
})

event
zipcodelloaded.evt
<aura:event type="APPLICATION">
    <aura:attribute name="list1" type="ET_MOSI_Zip_Code_Territory_Mapping__c[]"/>
    <aura:attribute  name="user_idd" type="id"/>
</aura:event>

zipcodelistt.cmp
<aura:component controller="UpdateUser1">
    <aura:handler name="" event="c:zipcodelloaded" action="{!c.onZipCodesLoaded}" />
    <lightning:navigation aura:id="navigation"/>
    <aura:attribute name="rows" type="Map[]"/>
    <aura:attribute name="cols" type="Map[]"/>
    <aura:attribute name="selectedRows" type="List"/>
    <aura:attribute name="selection" type="List" access="PRIVATE"/>
    <aura:attribute name="user_iid" type="string"/>
     <aura:attribute name="selectedZipCodes" type="List"/>
    <lightning:card title="Zip Code List" iconName="standard:account">
        <lightning:datatable
                             data="{!v.rows}"
                             columns="{!v.cols}"
                             keyField="Id"
                             hideCheckboxColumn="false"
                             showRowNumberColumn="true"
                             
                             
                             aura:id="list"
                              onrowselection="{! c.handleGroupChange }" />
    </lightning:card>
    <lightning:layout>
        <lightning:layoutItem size="12"
                              mediumDeviceSize="11"
                              padding="around-small">
            
        </lightning:layoutItem>
        <lightning:layoutItem size="12"
                              mediumDeviceSize="1"
                              padding="around-small">
           <lightning:Button onclick="{!c.update}" >Update</lightning:Button>
        </lightning:layoutItem>
        
    </lightning:layout>
</aura:component>

controller.js
({
    onZipCodesLoaded: function( component, event, helper ) {
        var cols = [
            {
                'label': 'Zip Code',
                'fieldName': 'Name',
                'type': 'url',
                'typeAttributes': {
                    'label':{
                        'fieldName': 'Name'
                    }                     
                }
            },            
            {
                'label': 'Service Territory',
                'fieldName': 'Service_Territory1__c',
                'type': 'text'
            },
            {
                'label': 'Service Region',
                'fieldName': 'Service_Region__c',
                'type': 'Text'
            },
            {
                'label': 'FSE',
                'fieldName': 'Service_User__c',
                'type': 'Text'
            },
            
            
        ];
            component.set( 'v.cols', cols );
            component.set( 'v.rows', event.getParam( 'list1' ) );
            
            var t = event.getParam('user_idd');
            alert('heyy'+t);
           
            component.set('v.user_iid',event.getParam("user_idd"));
            console.log(component.get('v.user_iid'));
            //alert(ze);  here I get undefined value
            },
            
           /* IstAccount.forEach(item => 
            item['AccontUrl']='/lightning/r/Account/'+item['Id']+'/view';
            );*/
            
            
            
            
            handleGroupChange: function (cmp, event) {
            var selectedRowss = event.getParam('selectedRows');
            
            // cmp.set('v.selection', value);
            var setRows = [];
                for ( var i = 0; i < selectedRowss.length; i++ ) {
                    
                    setRows.push(selectedRowss[i].Id);
                    
                }
                cmp.set('v.selectedZipCodes', setRows);
       // alert(setRows);
                
            },
  update: function( component, event, helper ) {
        // proactively search on component initialization
        var selectedrows1 = component.get( 'v.selectedZipCodes' );
      var user1 = component.get('v.user_iid');
       // alert(selectedrows1);
        helper.updateFields( component,event,helper, selectedrows1 ,user1);
    }, 
    
})

hepler.js
({
        updateFields: function(component, event, helper,selectedrows1,user1) {
       
        
        var action1 = component.get('c.Update2');
            
            
        action1.setParams({
            "recordid": selectedrows1,
            "user_id": user1
        });
            alert(selectedrows1);
        action1.setCallback(this, function(response) {
            
            var state = response.getState();
            alert(state);
            if (state === "SUCCESS") {
                console.log(state);
                $A.get('e.force:refreshView').fire();
            }
        });
        $A.enqueueAction(action1);
    },
    
    
})

and I want hyperlink on name field and when click on those it should redirect to record page 

thanks in advananced,
zeel

 
hii,

how to resolve Method does not exist or incorrect signature ?

my code:
public class VerifyAccountcls {
 @AuraEnabled
    public static void  verify(List<String> recordid){
        List<Account> acclist = new List<Account>();
        for(Account acc:[select Id, Name, Phone, Website,
                    BillingStreet, BillingCity,
                         BillingState, BillingPostalCode, Verified__c from Account where Id in :recordid]){
                             acc.Verified__c = true;
                             acclist.add(acc);
                         }
        if(acclist.size()>0){
            update acclist;
        }
        
    }
@AuraEnabled
    public static void  unverify(List<String> recordid){
        List<Account> acclist = new List<Account>();
        for(Account acc:[select Id, Name, Phone, Website,
                    BillingStreet, BillingCity,
                         BillingState, BillingPostalCode, Verified__c from Account where Id in :recordid]){
                             acc.Verified__c = false;
                             acclist.add(acc);
                         }
        if(acclist.size()>0){
            update acclist;
        }
        
    }

}

thanks in advance,
Zeel
hii everyone,

I could not able to pass the value using param to the controller.

vf page:
<apex:page Controller="UpdateUser" >
    <apex:form>
        <apex:pageBlock>
            <apex:pageBlockSection>
                <apex:repeat value="{!data1}" var="d">
                    <apex:inputField value="{!d.Service_Territory__c}">
                    </apex:inputField><br/>
                    <apex:inputField value="{!d.Service_User__c}">
                    </apex:inputField><br/>
                </apex:repeat>
            </apex:pageBlockSection>
            <apex:pageBlockButtons>
                <apex:commandButton action="{!UpdateUser1}" value="Update" reRender="">
                    <apex:repeat value="{!data1}" var="d">
                        <apex:param value="{!d.Service_Territory__c}" name="terr"/>
                        <apex:param value="{!d.Service_User__c}" name="user"/>
                    </apex:repeat>
                </apex:commandButton>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

Apex Class:
public class UpdateUser {
    public list<ET_MOSI_Zip_Code_Territory_Mapping__c> updateUser{get;set;}
    public List<ET_MOSI_Zip_Code_Territory_Mapping__c> data1{get;set;}
    public UpdateUser(){
        data1 = new List<ET_MOSI_Zip_Code_Territory_Mapping__c>();
        string idr = ApexPages.currentpage().getParameters().get('id');
        id zid= Id.valueOf(idr) ;  
        data1 = [select Service_Territory__c,Service_User__c from ET_MOSI_Zip_Code_Territory_Mapping__c where id=:zid];
    }
    public void UpdateUser1(){
        updateUser = new List<ET_MOSI_Zip_Code_Territory_Mapping__c>();
        string terr_str= ApexPages.currentpage().getParameters().get('terr');
        if(terr_str!= null){
            id terrr = Id.valueOf(terr_str);
            string query = 'select Service_Territory__c,Service_User__c from ET_MOSI_Zip_Code_Territory_Mapping__c'+ 'where Service_Territory__c='+terrr;
            updateUser =  Database.query(query);
        }
        
        system.debug(terr_str);
        string user_str= ApexPages.currentpage().getParameters().get('user');
        
        // id terrr = Id.valueOf(terr_str);
        
        if(user_str!= null) {
            for(ET_MOSI_Zip_Code_Territory_Mapping__c zip: updateUser ) 
            {
                zip.Service_User__c= user_str;
            }
        }
        
        update updateUser;
    }
}

thanks in Advance,
Zeel
hii everyone,

this is my code in that i am getting an error.
any one give suggestion how to solve this.

Apex Class:
public class UpdateUser {
    public list<ET_MOSI_Zip_Code_Territory_Mapping__c> updateUser{get;set;}
     public List<ET_MOSI_Zip_Code_Territory_Mapping__c> data1{get;set;}
    public UpdateUser(){
        data1 = new List<ET_MOSI_Zip_Code_Territory_Mapping__c>();
        string idr = ApexPages.currentpage().getParameters().get('id');
         id zid= Id.valueOf(idr) ;  
        data1 = [select Service_Territory__c,Service_User__c from ET_MOSI_Zip_Code_Territory_Mapping__c where id=:zid];
    }
    public void UpdateUser1(){
        string terr_str= ApexPages.currentpage().getParameters().get('terr');
        
        system.debug('terr');
        string user_str= ApexPages.currentpage().getParameters().get('user');
        
       // id terrr = Id.valueOf(terr_str);
        string query = 'select Service_Territory__c,Service_User__c from ET_MOSI_Zip_Code_Territory_Mapping__c'+ 'where Service_Territory__c='+terr_str;
         updateUser =  Database.query(query);
        
      for(ET_MOSI_Zip_Code_Territory_Mapping__c zip: updateUser ) 
      {
          zip.Service_User__c= user_str;
      }
        
        update updateUser;
    }
}

vf page:
<apex:page Controller="UpdateUser" >
    <apex:form>
        <apex:pageBlock>
            <apex:pageBlockSection>
                <apex:repeat value="{!data1}" var="d">
                    <apex:inputField value="{!d.Service_Territory__c}">
                    </apex:inputField><br/>
                    <apex:inputField value="{!d.Service_User__c}">
                    </apex:inputField><br/>
                </apex:repeat>
            </apex:pageBlockSection>
            <apex:pageBlockButtons>
                <apex:commandButton action="{!UpdateUser1}" value="Update">
                    <apex:repeat value="{!data1}" var="d">
                        <apex:param value="{!d.Service_Territory__c}" name="terr"/>
                        <apex:param value="{!d.Service_User__c}" name="user"/>
                    </apex:repeat>
                </apex:commandButton>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

error:
unexpected token: Service_Territory__c
Error is in expression '{!UpdateUser1}' in component <apex:commandButton> in page zip_code_territory_mapping: Class.UpdateUser.UpdateUser1: line 18, column 1

thanks in advance,
Zeel
hii,
 I'm doing the Service cloud superbadge challenge and  I get this error
Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: FSYOLOHW
hii,

how to resolve Method does not exist or incorrect signature ?

my code:
public class VerifyAccountcls {
 @AuraEnabled
    public static void  verify(List<String> recordid){
        List<Account> acclist = new List<Account>();
        for(Account acc:[select Id, Name, Phone, Website,
                    BillingStreet, BillingCity,
                         BillingState, BillingPostalCode, Verified__c from Account where Id in :recordid]){
                             acc.Verified__c = true;
                             acclist.add(acc);
                         }
        if(acclist.size()>0){
            update acclist;
        }
        
    }
@AuraEnabled
    public static void  unverify(List<String> recordid){
        List<Account> acclist = new List<Account>();
        for(Account acc:[select Id, Name, Phone, Website,
                    BillingStreet, BillingCity,
                         BillingState, BillingPostalCode, Verified__c from Account where Id in :recordid]){
                             acc.Verified__c = false;
                             acclist.add(acc);
                         }
        if(acclist.size()>0){
            update acclist;
        }
        
    }

}

thanks in advance,
Zeel