• NEWBIE
  • 220 Points
  • Member since 

  • Chatter
    Feed
  • 7
    Best Answers
  • 0
    Likes Received
  • 16
    Likes Given
  • 0
    Questions
  • 45
    Replies
Does anyone have any insight as to why a button might only appear in mobile and not in a Lightning page layout? We used the Lightning Experience Configuration Converter to arrive at the Lightning Component.
Hello, Would someone be able to assist in writing a test class for the following apex class:
global class purgeFiles implements Schedulable{
    
    global void execute(SchedulableContext SC) {
        
    List<ContentDocumentLink > docs;
        docs = [SELECT Id, Linkedentity.name, Linkedentity.id,ContentDocument.CreatedDate  
                FROM contentDocumentLink 
                WHERE Linkedentityid 
                IN (SELECT Id FROM lead where createddate < Last_N_Days:7 and isconverted = false) ];  
                //may want to change to include ALL leads
                //AND ContentDocument.CreatedDate < Last_N_Days:7];
                if(!docs.isEmpty())
            delete docs;
    }
}

Thank you very much
HI,
I am looking to get an SOQL which can help to find all service Appointment which are scheduled to Preferred / Requried Service Resources. I am looking for a SOQL including ServiceAppointment, WorkOrder and WorkType.

 
When I try to add content reports to my managed package and install this in Sandbox org I get the following error: 
This app can't be installed.
There are problems that prevent this package from being installed.
(SalesValue_reports/Content_by_class_yrh) ReportType: Content is not available	SalesValue_reports/Content_by_class_yrh: ReportType: Content is not available
I have enabled Content in the Sandbox org, and I can see the option to create reports of the type "File and Content Report". 

Does anybody know what is wrong? 
Appreciate the correct answers for the following PD 1 exam questions and clarification?
My thoughts of answers in Italic.
thanks in advance!

1.  Given the following Anonymous Block:
List<Case> casesToUpdate = new List<Case>();
for(Case thisCase : [Select Id, Status FROM Case LIMIT 50000]){            thisCase.status = 'Working';
    casesToUpdate.add(thisCase);

} try{
       Database.update(casesToUpdate.false);
}catch(Exception e){
      System.debug(e.getMessage()); }

What should a developer consider for an environment that has over 10,000 Case records?
A. The transaction will fail due to exceeding the governor limit.  
B. The try/catch block will handle any DML exceptions thrown.
C. The transaction will succeed and changes will be committed.
D. The try/catch block will handle exceptions thrown by governor limits.

2. A developer has an Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?
A. ApexPages.currentPage() .getparameters() .get('url_param')
B. ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()
C. String.ValueOf(ApexPages.currentPage() .getparameters() .get('url_param'))
D. String.escapeSingleQuotes(ApexPages.currentpages() .getParameters() .get('url_param'))
I want to upload a file to content version using Rest API. As of now i achieved to do using REST API with java code. Code is uploading till 35 MB single file and no more than that. Code is throwing 400 status code.
Please suggest me its possible to upload a file more than 100+MB file. If its  YES, then where i got stuck. looking forward from team if any one faced same situation.
.
 
I'm doing the Lightning Experience Rollout Specialist super badge and I haved created a brand new org for this. I am getting the following error in the Step 6

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: MZYQBARL

Really appreciating your support on this issue

Thanks
Eg:
Date of Birth(Date field) : 26-Jan-1996

New formula field (Date Type) - Day + Month + CurrentYear

 Output of new Formula field : 26-Jan-2020
Write a trigger on Opportunity LineItem , when Line Item is deletes, delete an opportunity as well.?
i created one custom price book that i need to change into standard pricebook how can i do that?can any one help me  

in the standard price book check box we need to deactivate? 
Hi All,

I was referring the salesforce documentation for lightning:input type="email" .There it is mentioned When multiple email is used, the email field expects a single email address or a comma-separated list of email addresses. Example, my@domain.com,your@domain.com with or without a space after the comma.Is it possible to use type="email" when there is a need to enter multiple email id.I have tried to enter multiple emails with comma separation but it is giving me error as "You have entered an invalid format.".
Hi, I'm following the Trailhead Apex tutorial (https://trailhead.salesforce.com/content/learn/modules/apex_database/apex_database_intro?trailmix_slug=prepare-for-your-salesforce-platform-developer-i-credential) and following the steps that should send an e-mail.

The code is copied straight from the tutorial and looks right to me.  When I execute it, I get the right debug log ("Email sent successfully") and I can't see anything untoward in the rest of the output, but I'm not receiving the mail.  I've tried two different addresses on two different domains and given it some time (about 20 minutes), but nothing has arrived.

Is there a setting somewhere that might be blocking this?

Many thanks
I am uploading case history to out new salesforce Helpdesk. 
We are receiving new cases via the Email-to-case method.

When a case is created by email-to-case an attachment is saved as a file connected to the case.

I am able to upload the case history via the API but I dont see how to pass a filename and get the file unloaded and attached.  
 
Does anyone have any insight as to why a button might only appear in mobile and not in a Lightning page layout? We used the Lightning Experience Configuration Converter to arrive at the Lightning Component.
Hello, we want to migrate every button from classic to lightning and I'm stuck with this particular button. In classic it works fine but when I switch to Lightning its not working. Simply just remain in the stage of 'Loading...' and the page remains blank.. 

This is how my button and VF page looks:

User-added imageUser-added image
 
<apex:page standardController="Account" lightningStylesheets="true">
    <c:QV_Jump QVURL="https://delinvmas624/QvAJAXZfc/opendoc.htm?document=CRM/CRM_Price_Waterfall.qvw&host=delinvmas624&select=CRM_ACCOUNT,{!Account.SAP_Customer_ID__c}&select=CRM_ACCOUNT_2,{!Account.SAP_Customer_ID__c}"
               QVURL_mobile="https://delin-qv-mobile-idp-prod.sig.dom/QvAJAXZfc/opendoc.htm?document=CRM/CRM_Price_Waterfall.qvw&host=delinvmas369&select=CRM_ACCOUNT,{!Account.SAP_Customer_ID__c}&select=CRM_ACCOUNT_2,{!Account.SAP_Customer_ID__c}" />
</apex:page>
Anyone has an idea why it's not loading in Lightning?
 
Hi Everyone,
Can you please help me out, I am new to Integration. Trying to create a record from one Salesforce Org to another Org (SOAP).
The WSDL file that I have generated for the apex class is more than 1MB. So I have removed some of the code from WSDL file to be able to generate wsdl2apex.
Error: System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element Id

Apex Class in Org1:
global class BookPlanner { 
    global class BookPlan{
        webservice String bookName;
        webservice Decimal price;
        webservice String bookId;
    }
    webservice static Book__c createBook(BookPlan Bk){
        Book__c book = new Book__c();
        book.Name = Bk.bookName;
        book.Price__c = Bk.price;
        insert Book;
        //Bk.bookId = book.Id;
        return Book;
    }
}
Call out Class of Org2:
public class Org2Integration {
    
    String Username = '*************************';
    String Password = '**************************';
	partnerSoapSforceCom_IntegratedOrg.Soap Obj = new partnerSoapSforceCom_IntegratedOrg.Soap();
    partnerSoapSforceCom_IntegratedOrg.LoginResult loginResult =  Obj.Login(Username,Password);
    System.debug('Successfull Login ------------------------------- '+loginResult);
    String Org2SessionId = loginResult.sessionId;
    System.debug('Session ID Org2 '+ Org2SessionId);
    
    // Get the sessionId from loginResult and use it into the sessionHeader_element
    BookPlannerSfdcIntegration.BookPlanner Org2CreateBook = new BookPlannerSfdcIntegration.BookPlanner();
    BookPlannerSfdcIntegration.SessionHeader_element sessionHeader = new BookPlannerSfdcIntegration.SessionHeader_element();
    sessionHeader.sessionId = Org2SessionId;
    System.debug('sessionHeader: '+ sessionHeader.sessionId);
    
    Org2CreateBook.SessionHeader = sessionHeader;
    //Org2CreateBook.URL = loginResult.serverURL;
    
    //Creating Book Record
    BookPlannerSfdcIntegration.BookPlan Book = new BookPlannerSfdcIntegration.BookPlan();
    Book.bookName = 'Integration Book Version 1';
    Book.price = 3000.00;
    
    //XML Headers
    Map<String,String> inputHeaderMap = new Map<String,String>();
    inputHeaderMap.put('Content-Type', 'text/xml');
    inputHeaderMap.put('Accept', 'text/xml');
    inputHeaderMap.put('SoapAction','');
    Org2CreateBook.inputHttpHeaders_x = inputHeaderMap;
    
    BookPlannerSfdcIntegration.Book_xc result = Org2CreateBook.createBook(Book);  
    
}


 

Please help me, I can't see any reference on how to make test class for it..

public class ProcessController {
    public ProcessController(ApexPages.StandardSetController stdController) {}
    public PageReference runBatch() {
        MyUpdateBatch batch = new MyUpdateBatch ();
        Database.executeBatch(batch);
        
        return new ApexPages.Action('{!List}').invoke();
    }
}

Thanks!
Hello All,

Getting the null value in RestRequest.params.get in base class. 

Apex Class Snippet:
 
@RestResource(urlMapping='/getContactdetails/*')
global class RESTServiceDemoClass {
    
    @HttpGet
    global static list<Contact> getContactList() {
        String strAccId = '';
        String strLeadSource = '';
        list<Contact> lstCons;
        RestRequest restReq = RestContext.request;
        RestResponse restRes = RestContext.response;
        // Reading parametrs from URL
        strAccId = restReq.params.get('accountId');
        strLeadSource = restReq.params.get('leadSource');
        if(!String.isBlank(strAccId) && !String.isBlank(strLeadSource)) {
            lstCons = [Select Id, Name, Email FROM Contact WHERE AccountId =:strAccId AND LeadSource =: strLeadSource];
        }
        return lstCons;
    }
}

Test Class:
RestRequest req = new RestRequest();
        RestResponse res = new RestResponse();
	    req.requestURI = '/services/apexrest/api/getContactdetails?'; 
		
        req.addParameter('accountId', contact.accountid);
  req.addParameter('leadSource', 'test');
        req.httpMethod = 'GET';
        RestContext.request = req;
        RestContext.response = res;

Thanks.
VSK98​​​​​​​
  • March 30, 2020
  • Like
  • 0
I am attempting to use scratch orgs for development with an FSC org. With standard FSC, FSC Referrals, and FSC Commercial Banking, you hit the scratch orgs limits for Dynamic Dashboards. In order to work around this, I must manually delete some of the dashboards, to successfully install all of the FSC packages in the scratch org. The Production Org has an increase to this limit, so I was hoping there was a Config setting I could set in the Scratch Config that could increase the limit for Dynamic Dashboards. I did not see anything in the documentation regarding dashboards though..
Ive written this controller extension. 

Im attempting to write the test class for it but im not too sure how to write it for the particular class.

This is my class
 
public class CreatePDFAttachment {
    public String Id;
    public String Name;
    public String OrdId;

    public CreatePDFAttachment(ApexPages.StandardController controller) {
    	
    }
    
    Public pageReference attachment(){
    Id=ApexPages.currentPage().getParameters().get('Id');
    Name=ApexPages.currentPage().getParameters().get('Name');
    OrdId=ApexPages.currentPage().getParameters().get('OrdId');
    
    PageReference attachment = Page.InvCreated;
    attachment.getParameters().put('id',Id);
    attachment.getParameters().put('name',Name);
    attachment.getParameters().put('OrdId',OrdId);
    
    //Attachment for Invoice Record
    Attachment e = new Attachment();
    
    //Attachment for Customer Order
    Attachment f = new Attachment();
    Blob body;
    try{
        body = attachment.getContentasPDF();
    }
    catch(Exception t){
        body = Blob.valueOf('Cannot create PDF');
    }

    // Attachment To Invoice__c
    e.body = body;
    e.Name = Name + ' - ' + system.Now();
    e.isPrivate = false;
    e.parentId = Id;
    e.ContentType = 'application/pdf';
    insert e;
    
    // Attachment To Customer_Order__c    
    f.body = body;
    f.Name = Name + ' - ' + system.Now();
    f.isPrivate = false;
    f.parentId = OrdId;
    f.ContentType = 'application/pdf';
    insert f;
    return new PageReference('/' + Id);

    }
}

For the test class how would i get the references which im currently passing as apexpages.get parameters would i need to create the records in the class. This is what im at so far it doesnt fail but it does have 0 coverage> I thought it would have some sort of coverage.

This is my test class
 
@isTest
private class TestCreatePDFAttachment {
    static testMethod void test1()
    {
        String OrdId = 'a2Z5E000000ky1HUAQ';
        Invoice__c Inv = new Invoice__c(Customer_Order__c = OrdId); 
        insert Inv;
        
        Attachment attach=new Attachment();       
        attach.Name='Unit Test Attachment';
        Blob bodyBlob=Blob.valueOf('Unit Test Attachment Body');
        attach.IsPrivate=false;
        attach.body=bodyBlob;
        attach.parentId=Inv.id;
        insert attach;
        
        List<Attachment> attachments=[select id, name from Attachment where parent.id=:Inv.id];
        System.assertEquals(1, attachments.size());
        
    }
}

Thank you in advance for any assistance.
 
Hello Community,
I'm working on a simple Invoice the user can call via button.

I have the following code snippet:
<p><apex:outputField value="{!Object.InvoiceAmount__c}"/></p>

I get following result:
User-added image
The currency of the Record is configured as 'GBP' but VF also shows the currency of the User, in this Case EUR.

I only want to see one amount in the currency of the Record. Do you have any idea?

I tried a lot with other tags like 'outputText', but then I dont see the currency and wrong number format (###.##).

Thank you in advance :)
 
We are currently on a go-live stage for our implementation project and we have been experiencing some issues regarding inbound integration with another system. At some points of the day, Salesforce is responding with the following message to the external: 

It is quite random, but the steps to reproduce are basically to invoke a SOAP web service exposed by Salesforce from the external system
User-added image
User-added image
HTTP/1.1 500 Server Error
INVALID_LOGIN
A given profile is failing to capture a platform event in the paused flow interview. The Administrator succeeds. What permission would be needed?
I would like to clarify, how do I make the custom domain that I set up stay in all paths of the community, and not just at home.
 
I configured a custom domain www.site.urbs.com.br and mapped it to the urbs.force.com community, however only the home stays with www.site.urbs.com.br, when I access other pages of the community it is redirected again for urbs.force.com. Is there any way to configure it so that all pages in the community start at www.site.urbs.com.br?

Hi there!

We have an app integrated with Salesforce CRM, that had been working perfectly for the last three years.

However, in the last weeks some customers started to complain about an OAuth Error:

We can't authorize you because of an OAuth Error. 1800: There was a problem in setting up your remote access

We started to investigate this issue and noticed that it only happens with customers in the instance NA174. It might be a coincidence, but we tested with some different accounts and instances (NA111 and NA81) but the error only happens with NA174.

Does anyone know if it could be really related to the instance? Or there are other specific account settings that prevents the OAuth flow to work properly?

Below, a screenshot of the error (in Portuguese)

Thanks in advance

User-added image

Hello, Would someone be able to assist in writing a test class for the following apex class:
global class purgeFiles implements Schedulable{
    
    global void execute(SchedulableContext SC) {
        
    List<ContentDocumentLink > docs;
        docs = [SELECT Id, Linkedentity.name, Linkedentity.id,ContentDocument.CreatedDate  
                FROM contentDocumentLink 
                WHERE Linkedentityid 
                IN (SELECT Id FROM lead where createddate < Last_N_Days:7 and isconverted = false) ];  
                //may want to change to include ALL leads
                //AND ContentDocument.CreatedDate < Last_N_Days:7];
                if(!docs.isEmpty())
            delete docs;
    }
}

Thank you very much
Write a trigger on Opportunity LineItem , when Line Item is deletes, delete an opportunity as well.?

Please help me, I can't see any reference on how to make test class for it..

public class ProcessController {
    public ProcessController(ApexPages.StandardSetController stdController) {}
    public PageReference runBatch() {
        MyUpdateBatch batch = new MyUpdateBatch ();
        Database.executeBatch(batch);
        
        return new ApexPages.Action('{!List}').invoke();
    }
}

Thanks!
I am attempting to use scratch orgs for development with an FSC org. With standard FSC, FSC Referrals, and FSC Commercial Banking, you hit the scratch orgs limits for Dynamic Dashboards. In order to work around this, I must manually delete some of the dashboards, to successfully install all of the FSC packages in the scratch org. The Production Org has an increase to this limit, so I was hoping there was a Config setting I could set in the Scratch Config that could increase the limit for Dynamic Dashboards. I did not see anything in the documentation regarding dashboards though..
A given profile is failing to capture a platform event in the paused flow interview. The Administrator succeeds. What permission would be needed?
I would like to clarify, how do I make the custom domain that I set up stay in all paths of the community, and not just at home.
 
I configured a custom domain www.site.urbs.com.br and mapped it to the urbs.force.com community, however only the home stays with www.site.urbs.com.br, when I access other pages of the community it is redirected again for urbs.force.com. Is there any way to configure it so that all pages in the community start at www.site.urbs.com.br?

Hi there!

We have an app integrated with Salesforce CRM, that had been working perfectly for the last three years.

However, in the last weeks some customers started to complain about an OAuth Error:

We can't authorize you because of an OAuth Error. 1800: There was a problem in setting up your remote access

We started to investigate this issue and noticed that it only happens with customers in the instance NA174. It might be a coincidence, but we tested with some different accounts and instances (NA111 and NA81) but the error only happens with NA174.

Does anyone know if it could be really related to the instance? Or there are other specific account settings that prevents the OAuth flow to work properly?

Below, a screenshot of the error (in Portuguese)

Thanks in advance

User-added image

I tried the following today in apex anonymous window and I see an unexpected behavior 
System.debug(Datetime.now());
System.debug(Datetime.now().format('YYYY-MM-DD'));
Why id the DD 84 when I use System.debug(Datetime.now().format('YYYY-MM-DD'))? 
13:09:14.1 (2508337)|USER_DEBUG|[1]|DEBUG|2020-03-24 19:09:14
13:09:14.1 (2587013)|USER_DEBUG|[2]|DEBUG|2020-03-84
HI

I am trying to authorize an org from Visual Studio but I am ending up with this below error

0:30:00.332 sfdx force:auth:web:login --setdefaultdevhubusername
ERROR running force:auth:web:login:  Cannot start the OAuth redirect server on port PortInUseAction. 
Try this: 
Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
00:30:11.364 sfdx force:auth:web:login --setdefaultdevhubusername ended with exit code 1


Can someone help me on this.

Thanks in advance.
Hello, Would someone be able to assist in writing a test class for the following apex class:
global class purgeFiles implements Schedulable{
    
    global void execute(SchedulableContext SC) {
        
    List<ContentDocumentLink > docs;
        docs = [SELECT Id, Linkedentity.name, Linkedentity.id,ContentDocument.CreatedDate  
                FROM contentDocumentLink 
                WHERE Linkedentityid 
                IN (SELECT Id FROM lead where createddate < Last_N_Days:7 and isconverted = false) ];  
                //may want to change to include ALL leads
                //AND ContentDocument.CreatedDate < Last_N_Days:7];
                if(!docs.isEmpty())
            delete docs;
    }
}

Thank you very much
HI,
I am looking to get an SOQL which can help to find all service Appointment which are scheduled to Preferred / Requried Service Resources. I am looking for a SOQL including ServiceAppointment, WorkOrder and WorkType.

 
Hi,
We would like to automate our sandbox refresh for a month period. Is this possible to do somehow?

We have also many connected apps and integrations that differs for each sandbox/production. So when we refresh e.g. STG sandbox, we need to set it all up for the particular sandbox. Is this possible to do via metadata api once the refresh is done?

Thank you in advance for any response.
When I try to add content reports to my managed package and install this in Sandbox org I get the following error: 
This app can't be installed.
There are problems that prevent this package from being installed.
(SalesValue_reports/Content_by_class_yrh) ReportType: Content is not available	SalesValue_reports/Content_by_class_yrh: ReportType: Content is not available
I have enabled Content in the Sandbox org, and I can see the option to create reports of the type "File and Content Report". 

Does anybody know what is wrong? 
When i am going to run a test class, i am facing the belo error.
FYI, the inserted account is integrated with xero.Kindly assist me.Thanks in advance.


System.NoDataFoundException: Data Not Available: The data you were trying to access could not be found. It may be due to another user deleting the data or a system error. If you know the data is not deleted but cannot access it, please look at our <A href="javascript:openPopupFocusEscapePounds('https://help.salesforce.com/apex/htdoor?body=%2Ftrain%2FonlineSupport.jsp&loc=support&language=en_US&release=224.14.4&instance=CS110', 'Help', 1024, 768, 'width=1024,height=768,resizable=yes,toolbar=yes,status=yes,scrollbars=yes,menubar=yes,directories=no,location=yes,dependant=no', false, false);" title="support (New Window)">support</a> page.
Appreciate the correct answers for the following PD 1 exam questions and clarification?
My thoughts of answers in Italic.
thanks in advance!

1.  Given the following Anonymous Block:
List<Case> casesToUpdate = new List<Case>();
for(Case thisCase : [Select Id, Status FROM Case LIMIT 50000]){            thisCase.status = 'Working';
    casesToUpdate.add(thisCase);

} try{
       Database.update(casesToUpdate.false);
}catch(Exception e){
      System.debug(e.getMessage()); }

What should a developer consider for an environment that has over 10,000 Case records?
A. The transaction will fail due to exceeding the governor limit.  
B. The try/catch block will handle any DML exceptions thrown.
C. The transaction will succeed and changes will be committed.
D. The try/catch block will handle exceptions thrown by governor limits.

2. A developer has an Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?
A. ApexPages.currentPage() .getparameters() .get('url_param')
B. ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()
C. String.ValueOf(ApexPages.currentPage() .getparameters() .get('url_param'))
D. String.escapeSingleQuotes(ApexPages.currentpages() .getParameters() .get('url_param'))
This is my Class
-------------------
trigger trgStudentSchoolFields on Student_School_Fields__c (after insert, after update){
    String IntegrationUser = System.Label.IntegrationUser;
    map<string,string> mapContacts = new map<string,string>();
    list<Contact> listOfContact = new list<Contact>();
    list<Inquiry__c> inquiryList = new list<Inquiry__c>();
    list<Opportunity> oppList = new list<Opportunity>();
    String uid = userinfo.getUserId();
    String IntgUser;
    system.debug('USERID>>>' + uid);
    system.debug('IntegrationUser>>>' + IntegrationUser);
    list<Contact_Method__c> cmlist=new list<Contact_Method__c>();
    Set<string> stdscmid = New Set<string>();
    List<Error__c> errconlst = New List<Error__c>();
    List<Error__c> errlst = New List<Error__c>();  
   // if (!uid.contains(IntegrationUser))
   // {
    if(userinfo.getUserId() != '00555000003neB6'){
        list<Student_School_Fields__c> lstSchStud=new list<Student_School_Fields__c>();
        for(Student_School_Fields__c schstudobj:trigger.new)
        {
            stdscmid.add(schstudobj.id);
            lstSchStud.add(schstudobj);
            mapContacts.put(schstudobj.Contact__c, schstudobj.Student_Enrollment_Campus__c);
        }
        errconlst = [select ErrorCode__c, Error_Message__c, Error_Type__c, ObjectType__c, Status__c,
                     ContactRelated__c, OpportunityRelated__c, APIOperation__c
                     From Error__c 
                     Where Error_Type__c = 'Data' 
                     AND Status__c = 'Failed' 
                     AND ObjectType__c = 'StudentSchoolFields'
                     AND StudentSchoolFieldRelated__c IN :stdscmid];
        for (Error__c errobj:errconlst)
        {
            errobj.Status__c = 'Processed';
            errlst.add(errobj);
        }
        if (errlst.size() > 0)
            update errlst;
        
        if(mapContacts.size()>0 && !mapContacts.isEmpty()){
            for(Contact con : [SELECT Id, Student_Enrollment_Campus__c FROM Contact
                               where  id IN:mapContacts.keySet()]){
                                   string enrollment = mapContacts.get(con.id);
                                   System.debug('con'+con);
                                   System.debug('enrollment'+enrollment);
                                   if(enrollment != null){
                                       con.Student_Enrollment_Campus__c = enrollment; 
                                       listOfContact.add(con);
                                   }
                               }
            
            for(Inquiry__c inquiry : [SELECT Id, Student_Student_Enrollment_Campus__c, Contact__c FROM Inquiry__c
                                      where  Contact__c IN:mapContacts.keySet()]){
                                          System.debug('inquiry'+inquiry);
                                          string enrollment = mapContacts.get(inquiry.Contact__c);
                                          if(enrollment != null){
                                              inquiry.Student_Student_Enrollment_Campus__c = enrollment; 
                                              inquiryList.add(inquiry);
                                          }
                                      }
            for(Opportunity opp : [SELECT Id, ContactId , Student_Enrollment_Campus__c FROM Opportunity where
                                   ContactId  IN:mapContacts.keySet()]){
                                       System.debug('opp'+opp);
                                       string enrollment = mapContacts.get(opp.ContactId);
                                       if(enrollment != null){
                                           opp.Student_Enrollment_Campus__c = enrollment; 
                                           oppList.add(opp);
                                       }
                                   }
            if(listOfContact.size()>0 && !listOfContact.isEmpty()){
                TrgInquiryHandler.isStudentSchoolStopTriggerContact=true;
                update listOfContact;
            }
            if(inquiryList.size()>0 && !inquiryList.isEmpty()){
                update inquiryList;
            }
            if(oppList.size()>0 && !oppList.isEmpty()){
                TrgInquiryHandler.isStudentSchoolStopTriggerOpp=true;
                update oppList;
            }
        }
        string jsonstr=JSON.serialize(lstSchStud);
        
        if(Trigger.isAfter && Trigger.isInsert || Trigger.isAfter && Trigger.isUpdate )
        {   if(!System.isFuture() && !System.isBatch())
            studentSchoolFields.updateSchfldStudentsCVUe(jsonstr);
        }
   // }
        }
}


Test Class 
=============
@isTest
Public  class trgStudentSchoolFieldsTestClass {  
    public static testmethod void contactmethodtest(){
    
       set<string> conid=new set<string>();
        
        Contact con =new Contact();
        con.lastname = 'testmore';
        con.Subscribe_To_SMS_Service__c=true;
        con.Student_Enrollment_Campus__c = 'AUR';
        insert con;
        
        Inquiry__c  inq = new Inquiry__c();
        inq.Name = 'inasfewna===100years====createNewInq';
        inq.Student_Student_Enrollment_Campus__c = 'ONL';
        inq.Contact__c = con.id;
       // insert inq;

        
        Contact_Method__c cm=new Contact_Method__c();
        cm.Name='test';
        cm.Contact__c=con.Id;
        cm.Subscribe_To_SMS_Service__c=true;
        insert cm;
        conid.add(cm.id);
    }
    }
This test class is not Code Coverage in my Class were i am missing i am not understand can you please any one help me
I'm workshoping in a developer org using knowledge articles and communities. After 99 articles, my 100th article has an error that my article count has been exceeded. I've only got 99, so I don't understand why that is. Is there something I need to check to increase my limits?