• Maharajan C
  • ALL STAR
  • 8840 Points
  • Member since 2015
  • Sr.Associate Consultant
  • Infosys


  • Chatter
    Feed
  • 296
    Best Answers
  • 1
    Likes Received
  • 3
    Likes Given
  • 13
    Questions
  • 1042
    Replies
Hi I am somewhat of a novice when it comes to apex and can't seem to work out what the problem is with line 7 of my code. I am building a practice trigger that creates 10 identical opportunities whenever an account has more than 99 employees.

I think I have set up the for loop correctly but in the developer console 'Problem' there are a number of messages on line 7
- Expecting ';' but was a '<'
- Expecting ';' but was a ','
- Expecting ';' but was a ')'

Any suggestions?
trigger CreateTenOpps on Account (before insert) {
    
    List<Opportunity> TenOpps = New List<Opportunity>();
    
    for (Account acc : Trigger.new) {
        if (acc.NumberOfEmployees > 100) {
            for (Integer i = 0, i < 10, i++) {
                Opportunity opp = New Opportunity(CloseDate = date.today(), 
                                                  StageName = 'Prospecting', Name = 'Trigger Opp');
                TenOpps.add(opp);
            }
            insert TenOpps;
        }
    }

}

 

Hello, I wrote a trigger to check if the url = 'https://sig-cb--Full.cs88.my.salesforce.com' and the profile of the current user is a specific profile (SIG-FSM-Super User) and if so the trigger shows an error message and also an image which I included in the addError function, it looks like this:

trigger ContactCreationForServiceMaxUsers on Contact (Before insert) {
   
       String baseURL = String.valueof(URL.getSalesforceBaseUrl());
      
       system.debug('<<baseURL>>' + baseURL);
       Boolean isBaseURL = baseURL.contains('https://sig-cb--Full.cs88.my.salesforce.com');
       System.debug(' >> String.valueof(URL.getSalesforceBaseUrl()) >>'+baseURL ); 
       User currentUser = [SELECT Id, Profile.Name FROM USER WHERE Id =:UserInfo.getUserId()]; 
      
       Contact c = new Contact(); 
      
       System.debug(' >> isBaseURL >>'+isBaseURL ); 
       System.debug(' >> currentUser.Profile.Name>>'+currentUser.Profile.Name ); 
   
     for(Contact c : Trigger.New){ 
          if(isBaseURL == TRUE  && currentUser.Profile.Name == 'SIG-FSM-Super User'){
           c.addError(' <p style="color:red; font-size: 20px;">Service contact creation is only allowed from “Account” tab using the blue button “Create Contact” after selecting a account”</p><img id="theImage" src="https://sig-cb--full--c.cs88.content.force.com/servlet/servlet.FileDownload?file=0159E0000002tNp" width="850px" height="100px" alt="Description of image here"/> ', false); 
          } 
     } 
}


Can anyone help me with how to build the test class for the trigger? At least theoretical.

1. First I need to create a contact
2. I need to create a user with a profile = 'super-user'
3. somehow i need to check the addError function..

Something like this...

Hi All,

I was given this sample JSON by our partner and I am trying to write a REST Web service to ingest it but I can't seem to get it to work. I am testing it in Workbench and am getting this error:

Unexpected parameter encountered during deserialization: orderNumber at [line:2, column:17

Here is the Apex Class:
 
@RestResource(urlMapping='/DPS_Response/')
global with sharing class DPSResposnse
{
    global class AllParties
    {
        global String partyId;
        global String decision;
    }    
    
    @HttpPost
    global static String updateDPSData    (String orderNumber, AllParties[] parties)
    {
       return 'test';
    }
}

And here is the sample JSON:
{
    "orderNumber":"000042289",
    "parties":
       [
      {
        "partyId": "12345",
        "decision":    "D"    
      },
      {
        "partyId": "09876",
        "decision":    "P"        
      }

       ]
}

 
I had built a trigger in Sandbox, which finds duplicates (with the same external id) and it creates a hyperlink (in the form of a date) on the new record, to be able to link to the old record. I will show you the piece of the code that does that below. However, I accidentally forgot to change the hyperlink from the sandbox link to the production link. I now need to change all the vlaues of those hyperlinks in production. I tried something in the execute anonymous window as a test, but it didn't seem to work. I'll show you both the piece of the Handler and the attempt that I made in the execute window. 

HANDLER:
                string pdi = discharge.Previous_instances__c;
                string disId = discharge.id;
                date disDate = discharge.Discharge_Date__c;
                integer day = oldDischargeMap.get(discharge.Id).Discharge_Date__c.day();
                integer month = oldDischargeMap.get(discharge.Id).Discharge_Date__c.month();
                integer year = oldDischargeMap.get(discharge.Id).Discharge_Date__c.year();
                string dateDisplay = month + '/' + day + '/' + year;
                if(pdi == null){
                    pdi = '';}
                else{
                    pdi = pdi;}
                
                newDischarge.previous_instances__c = pdi+' '+ '<a href=https://centers--partial.lightning.force.com/'+disId+'>'+dateDisplay+ '</a>' + ' ; ' ;

EXECUTE TRIAL
list<discharge__c> disch = [select previous_instances__c from discharge__c ];
for (discharge__c dis: disch){
    if (dis.previous_instances__c != null){
    string link = dis.previous_instances__c;
    link = link.replace('<a href=https://centers--partial.lightning.force.com/', '<a href=https://centers.lightning.force.com/');
    dis.previous_instances__c = link;
        update dis;
    }}
 
Hello,

I have below config:
Account
   Oppourtunty
     Quote
       field (LookUptoAccount__c)
I have below usecase,
When an account is updated on Opportunity, i want that all the quotes should update LookUptoAccount__c with the name of account, 

how can i do it ? workfow or rocessbuilder, thank you in advance
Do anyone have idea to pass the Selectlist value to the Javascript in Salesforce using Document.Element.id .

i need to get the selected value as an alert ;;
 Please let me know how can i get the values , using the javascript Element.id Only

Or provide useful links will go through it .. 
<apex:page id="pg" >
  
 <apex:form id="frm">
 
 <script>
      
      function  getvalue(){
        alert("hi");
       var selectedvalue =document.getElementById("pg:frm:otptpanel:selectlist").value; 
       alert(selectedvalue);
      }
     
      </script>
  <apex:outputPanel id="otptpanel" >
   
    <apex:selectList id="selectedval" size="1" onchange="getvalue()"> 
   <apex:selectOption itemLabel="Hyderbad" itemValue="Hyd"/>
     <apex:selectOption itemLabel="Banglore" itemValue="Ban"/> 
      <apex:selectOption itemLabel="Chennai" itemValue="Che"/>  
    
   </apex:selectList>
  
      </apex:outputPanel>
  
   
 
 
 </apex:form>
 
</apex:page>

using the Javascript Element only .. 
Thanks
Deepika
 
I’m working on my first Visualforce page and controller. Thanks to others on the community, I’ve gotten everything to work and now I need to write the test class to move it to production. I’ve never done this before. I’ve completed the Apex Testing module in Trailhead, but I’m still lost on how to create the test for my project. This just is not clicking for me. Below is my code for the Visualforce page and for the controller. Help is greatly appreciated.

<apex:page StandardController="Contract" extensions="ContractProductsController">
  <apex:form >
        <apex:pageBlock >
                       <apex:pageBlockTable value="{!lineItems}" var="oli">
                 <apex:column >
                  <apex:facet name="header">Product Code</apex:facet>
                       {!oli.PricebookEntry.Product2.ProductCode}
                </apex:column>
                <apex:column >
                    <apex:facet name="header">Product</apex:facet>
                       {!oli.PricebookEntry.Name}
                </apex:column>
              </apex:pageBlockTable>  
          
          </apex:pageBlock>
    </apex:form>
</apex:page>


Controller:

public class ContractProductsController {
 public List<OpportunityLineItem> lineItems { get; set; }
   
    Public ContractProductsController( ApexPages.StandardController std )
                {
                                if( std.getRecord().Id != null )
                                {
                                                Contract con = [ Select Id, Opportunity__c from Contract where Id =: std.getRecord().Id ];
                                               
                                                lineItems = [ Select Id, OpportunityID, PricebookEntry.Name, PricebookEntry.Product2.ProductCode,Product2ID,PricebookEntryID
            from OpportunityLineItem where OpportunityID =: con.Opportunity__c ];
                                }
                                else
                                {
                                                lineItems = new List<OpportunityLineItem>();
                                }
    }        
}
I am trying to display the value of a related custom object field along with the parent fields on my component html.
Here is the SOQL - The below works, I get the data of the child object with the values from the object
SELECT Name,sumchans__Province_Code__c,
    (select sumchans__Penetration__c, sumchans__Total_Units__c,sumchans__On_Billings__c, sumchans__Date_Of_Calculation__c 
    from sumchans__City_Stats__r) FROM sumchans__CITY_MASTER__c
Here is the wire service code:
import { LightningElement, wire } from 'lwc';
import getCityStats from '@salesforce/apex/mduMarketAnalysisController.getCityStats';  
export default class MduPenetration extends LightningElement {
    @wire(getCityStats)cityMaster;        
}

And here is the Component HTML. This just shows the parent fields values not anything from the child, but I don't get any errors.
 
<template if:true={cityMaster.data}>
            <template for:each={cityMaster.data} for:item="city">
                <lightning-layout horizontal-align="center" key={city.Id}>
                    <lightning-layout-Item>
                        {city.Name}
                    </lightning-layout-Item>
                    <lightning-layout-Item>
                        {city.sumchans__City_Stats__r.sumchans__Total_Units__c}
                    </lightning-layout-Item>
                </lightning-layout>                  
            </template>


 
I am trying to push the filter the data received from an apex method call and push it to a track variable @track variable. The below doesn't work, but no errors, no data is displayed.
export default class MduPenetration extends LightningElement {
  @track bc;
  @track ab;

  @wire(getCityStats) cityStats({data}) {
    if (data) {
        for(let i=0;i<data.length;i++) {
            if(data.sumchans__Province_Code__c == 'BC') {
                this.bc.push(data[i]);
            }
            if(data.sumchans__Province_Code__c == 'AB') {
                this.ab.push(data[i]);
            }
           //this.stats.push(data.value); 
        }
    }
  }
}
Here is the HTML
<template if:true={bc}>
                <template for:each={bc} for:item="city">
                    <lightning-layout class="slds-m-around_xxx-small" key={city.Name}>
                            <lightning-layout-Item>
                                {city.Name}
                            </lightning-layout-Item>
                            <lightning-layout-Item>
                                {city.sumchans__Province_Code__c}
                            </lightning-layout-Item>
                    </lightning-layout>
                </template>
            </template>
BUt simply this works
export default class MduPenetration extends LightningElement {
  @track stats;;
   @wire(getCityStats) cityStats({data}) {
       if (data) {
           this.stats = data; 
        }
    }
  }

Please advise!

 
Conditional Formula
My Lead object has 2 lookups fields: one to a custom object, and one to Opportunity. In some scenarios, only one of those lookup fields will be populated. The custom object and Opportunity object both contain fields that record the same information relevant to the Lead. I need to create a formula field on Lead, that looks to BOTH objects to display its formula, so that if one of the lookup fields is not populated, the relevant information will display on the Lead record from the other lookup record. How would I write that formula? Here is a template which of course doesn't work, but is the point where I'm stuck. 

1. This one would be for a checkbox formula field

IF(CustomRehosp__r.Concerns__c =true, IMAGE('/servlet/servlet.FileDownload?file=0152g0000009NGo',"",30,30),"")

ELSE 
IF(Opportunity.Concerns__c =true, IMAGE('/servlet/servlet.FileDownload?file=0152g0000009NGo',"",30,30),"")

2. This one would be for a text formula field
CustomRehosp__r.Concern_Notes__c
ELSE
Opportunitiy.Concern_Notes__c 
Could you please help me write test class for this?
@RestResource(urlMapping='/RESTService/*')
global with sharing class APPRestService {

@HttpGet
global static MergeWrap getempRecord() {
        MergeWrap Wrapper = new MergeWrap();
        Wrapper.EmployerList = [SELECT Name,Organization_Name__c,Organization_Logo__c,Organization_Street_Address__c,
                                                      Organization_Apt__c,Organization_City__c,Organization_County__c,Organization_Phone__c,
                                                      Organization_Phone_Ext__c,Organization_State__c FROM Organization__c];
        Wrapper.ApplicationList = [SELECT InstitutionName__c,Mailing_Address_Street_1__c,Mailing_Address_Street_2__c,
                                                        Mailing_Address_City__c,Mailing_Address_State__c,Mailing_Address_Zip__c, From Application__c];
           return Wrapper;
    }
    
    global class MergeWrap{
           global List<Application__c> ApplicationList;
           global List<Organization__c> EmployerList;
    }
 
}

 
  • February 04, 2020
  • Like
  • 0
So, I want to make sure that user can't type "St." for Street and must type "St" instead. And, that user can't type "Suite, 4" and must type "Suite 4".
So, no commas "," or periods ".". 

Here's what I've tried. Not working because I think what I've done here is allow for commas and periods when I'm trying to exclude them. Not sure how to exclude them.
AND(
NOT(ISBLANK(MailingStreet)),
NOT(REGEX( MailingStreet, "[a-zA-Z0-9\\.\\,]+"))
)

Thanks.
Hello guys.
I'm typing to get paypal access token and paypal uses basic auth

how can I post Basic auth in salesforce callouts
do I need to put it in request.setHeader('username','sldkj88***');
or in body request.setBody('username','sldkj88***');
I want to know how i can take id of comSF and put in my fields CommentSF_Id__cUser-added image
So I found the below code and wanted to modify it to meet my needs. The problem that I have is the records displayed in the apex:repeat do not get put in columns like in a apex:pageBlockTable. Other than that, it works fine. How do I modify the below code in order to get the desired result? Thank you in advance for your help!! 

FYI - I found the code here >>> https://blog.jeffdouglas.com/2011/03/02/dynamically-group-display-query-results/

 
<apex:page controller="DisplaySectionsController" action="{!load}" sidebar="false">
  <apex:sectionHeader title="My Sample Display Page" subtitle="Group by States" 
    description="This page shows how you can dynamically group results by field value."/>

  <apex:repeat value="{!states}" var="state">

    <apex:pageBlock title="{!state}">

      <apex:repeat value="{!accounts}" var="account"> 
 
        <apex:outputPanel rendered="{!IF(state=account.BillingState,true,false)}">
        {!account.Name} - {!account.BillingState}<br/>
        </apex:outputPanel>

      </apex:repeat>

    </apex:pageBlock>

  </apex:repeat>

</apex:page>
  • January 28, 2020
  • Like
  • 0
I have a picklist field 'Status' with three options. Requested, Approved, and Denied. I have a currency field 'Total Price' with a requested total. Lastly, I have a currency formula field 'Accepted Total' that I only want to populate with the same amount from the 'Total Price' field if a picklist selection is Approved. Otherwise the Accepted Total is just blank. What's the best way to do this?
Dear All,
My If condition is always false even the 2 values compared match each other ?? see picture the result
******************
        <aura:iteration items="{!v.reclamationList}" var="reclamation">

            <aura:renderIf isTrue="{!reclamation.Type__c == !v.category}">
                {!reclamation.Type__c}/{!v.category}--True <aura:set attribute="else"> {!reclamation.Type__c}/{!v.category}--False </aura:set>
            </aura:renderIf>

        </aura:iteration>
******************
controller:
  updateSelect: function(component, event, helper) {
    //return the selected value

    var cat = component.find("selectItem").get("v.value");
    component.set("v.category", cat);
  },


display
Hi! I am new with SF Apex programming, then I am stuck with a simple problem I think so.
After I added a Validation Rule to unable the user saves a new account without entering data in the fields (ShippingCity, ShippingPostalCode, ShippingStreet) I am facing some problems with a trigger test class.

I must be able to put fake values in my trigger test for these new fields that now are required field.

Could you help me, pls?
 
@isTest
    static void UpdateAccountProspect1() {        
        Boolean result = true;
        try{
            User testUser = SetupClassTest.createUserSalesRep('2801','testadmin@testorg.com', 'testadmin@testorg.com.prod');
            System.runAs(testUser){
                RecordTypeInfo rt = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Prospect_2801');
                List<Account> accToUpdate = SetupClassTest.generateNAccountsWithRT(1, rt.getRecordTypeId(), '2801');
                accToUpdate[0].RecordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Customer_2801').getRecordTypeId();
                update accToUpdate[0];
            }
        }catch(Exception e){
            System.debug('Línea: ' + e.getStackTraceString());
            result = false;
        }
        System.assert(result);
    }



 
Hi all,
I have working Code the sends an SMS  via Apex and Twilio, Great stuff. The trouble I am having is writing the Tests and I just need a little help. I don't do near enough Apex for my liking and I am feeling it here. 

IAny help/pointers would be most appreciated. 

Apex class:
public with sharing class Twilio {
    
    Public string text1 {get;set;}
    public boolean showmessage{get;set;}
    public string selectedvalue {get;set;} 
    
    private final contact acct;
    public Twilio(){}
    public Twilio(ApexPages.StandardController stdController) {
        this.acct = (contact)stdController.getRecord();       
    }
    
    Public static Void sendfromtwilio (string Fromnumber,string text,string tonumber) {
        
        errorResponseWrapper erw;
        configuration_setting__c cstt=new configuration_setting__c();
        cstt = [select Name,AccountSid__c, Active__c,AuthToken__c,Bulk_SMS__c,Contact_Phone_Number__c,Lead_Phone_Number__c,TestPhone__c FROM configuration_setting__c where Name='Twilio' limit 1];
        String account = cstt.AccountSid__c;
        String token = cstt.AuthToken__c;
        HttpRequest req = new HttpRequest();
        req.setEndpoint('https://api.twilio.com/2010-04-01/Accounts/'+account+'/SMS/Messages.json');
        
        req.setMethod('POST');
        
        String VERSION  = '3.2.0';
        
        req.setHeader('X-Twilio-Client', 'salesforce-' + VERSION);
        
        req.setHeader('User-Agent', 'twilio-salesforce/' + VERSION);
        
        req.setHeader('Accept', 'application/json');
        
        req.setHeader('Accept-Charset', 'utf-8');
        
        req.setHeader('Authorization','Basic '+EncodingUtil.base64Encode(Blob.valueOf(account+':' +token)));
        
        req.setBody('To='+EncodingUtil.urlEncode(+tonumber,'UTF-8')+'&From='+EncodingUtil.urlEncode(+Fromnumber,'UTF-8')+'&Body='+text);
        
        Http http = new Http();        
        HTTPResponse res = http.send(req);  
        System.debug(res.getBody());
        system.debug(res.getStatusCode());
        if(res.getStatusCode()==201)
        {
            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Confirm,'SMS Sent Successfully'));
        } else{
            erw =(errorResponseWrapper)json.deserialize(res.getBody(),errorResponseWrapper.class);
            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,erw.message));
            System.debug('ERROR');
        }
    }
    public PageReference ok(){
        PageReference acctPage = new PageReference('/' +acct.Id);
        acctPage.setRedirect(true);
        return acctPage;
    }  
    public class errorResponseWrapper{
        String code;       
        String message;        
        String moreInfo;        
        String status;    
    }
}
  • January 14, 2020
  • Like
  • 0
Hi All, 

I am facing issue of our test class we only got 13 perent code coverage please help
me

trigger autoCreateContactController on Case (before insert) {
    
    for(Trigger_Control__c tc:Trigger_Control__c.getAll().values())
    {
        if( tc.Enable_Auto_Create_contact_Trigger__c==true)
        {
            
              for(case cs:trigger.new)
       {
          
           if(userinfo.getName()=='Automated Workflow'){   
               contact[] lstcontact= [select id from contact where email=:cs.SuppliedEmail limit 1];
               
                    if(!lstcontact.isEmpty()) 
                   {
                  String contId=lstcontact[0].id;
                    if(contId!=null)
                    {
                    cs.ContactId=contId;
                    }
                } 
                else { 
                   
                    String leftPart = cs.Suppliedname;
                    String[] leftPartSplitted = leftPart.split('\\s+');
                    if(leftPart!=null || leftPart!='') 
                    {
                        if(leftPartSplitted.size() == 3)
                        {
                            String firstName = leftPartSplitted[0]; 
                            String lastName = leftPartSplitted[1]; 
                            String middlename=leftPartSplitted[2]; 
                            contact con1 =new contact(); 
                            con1.firstname=firstName;
                            con1.LastName=lastName+middlename;
                            con1.Email=cs.SuppliedEmail;
                            con1.AccountId='0010W00002MuDcQQAV';
                            insert con1; 
                            cs.ContactId=con1.Id; 
                        }  
                        else if(leftPartSplitted.size() == 2) 
                        { 
                            String firstName = leftPartSplitted[0];
                            String lastName = leftPartSplitted[1]; 
                            contact con1 =new contact();
                            con1.firstname=firstName; 
                            con1.LastName=lastName;  
                            con1.Email=cs.SuppliedEmail;  
                            con1.AccountId='0010W00002MuDcQQAV';  
                            insert con1;   
                            cs.ContactId=con1.Id; 
                        }
                        else if(leftPartSplitted.size() == 1)
                        { 
                            String lastName = leftPartSplitted[0]; 
                            contact con1 =new contact();
                            con1.LastName=lastName;
                            con1.Email=cs.SuppliedEmail;
                            con1.AccountId='0010W00002MuDcQQAV';
                            insert con1; 
                            cs.ContactId=con1.Id;    
                }
            }
                               
                    
               } 
               }}}
            
    }}


My test class is 

@isTest
public class AutoCreateContactControllerTest {

@isTest
    public Static void SpamTestmethod()
    {  Account acc = new Account(Name='MassBay');
        insert acc;
        
        Contact con = new Contact(AccountId=acc.Id,LastName='test',Email='tttt@test.com');
        insert con;
        Trigger_Control__c tc=new Trigger_Control__c();
        tc.Enable_Auto_Create_contact_Trigger__c=true;
        tc.Name='test tc';
        insert tc;
     
     List<case>lstcase=new List<case>();
          
       
            List<RecordType> listRecType = [select Id from RecordType where sObjectType = 'Case' And Name = 'MassBayCC_Ticket'];
            Case cs = new Case(RecordTypeId = listRecType[0].Id,AccountId=acc.Id,ContactId=con.Id);
      
        cs.Subject='tesr';
        cs.Description='Test description';
         cs.SuppliedEmail='tttt@test.com';
        cs.SuppliedName='hello world';
          lstcase.add(cs);
          Case cs1 = new Case(RecordTypeId = listRecType[0].Id,AccountId=acc.Id,ContactId=con.Id);
        
        cs1.Subject='tesr';
        cs1.Description='Test Description';
        cs1.SuppliedEmail='tttt@test.com';
        
        
        
        cs1.SuppliedName='hello world world';
          lstcase.add(cs1);
          Case cs2 = new Case(RecordTypeId = listRecType[0].Id,AccountId=acc.Id,ContactId=con.Id);
        cs2.Subject='tesr';
        cs2.Description='Test Description';
        cs2.SuppliedEmail='tttt@test.com';
        cs2.SuppliedName='hello';
        lstcase.add(cs2);
          insert lstcase;
        
       
    }
}
We have the managed package which is created by us so we are try to install this package  some other org.

It works fine in all orgs but in one org we have the error message like below:

 (UpdateAcc-2) myrule_1_A1(Action Call) – We can’t find an action with the name and action type that you specified

The UpdateAcc is the Process builder which call the Apex Class.

In the package also we have these components but we got the Error!!!

Any one please help on this!!!

Thanks,
Raj
Hi Experts,

Hope some one wil help me:

Salesforce going to update the certificates. Please refer the below Link.

https://help.salesforce.com/articleView?id=000269027&language=en_US&type=1

So Here i have to do the test compatibility  in my environment for MiddleWare and Integration:

Can any one please let me know how to perform the below steps: 

For Middleware/Integrations
To test the compatibility of an API client that uses SOAP to communicate with Salesforce:
  • Set up an API client in a test environment.
  • In that test environment, change the API client's login endpoint hostname fromlogin.salesforce.com or [MyDomain].my.salesforce.com tohttps://certtest.force.com.
  • As an example, changehttps://login.salesforce.com/services/Soap/u/32.0 to https://certtest.force.com/services/Soap/u/32.0 while leaving the path as-is.
  • Log in with that API client.
  • If you see an error message that resembles the following: "INVALID_LOGIN: Invalid username, password, security token; or user locked out." or “Content is not allowed in prolog.”, then this test passed and your integration trusts DigiCert-signed certificates.
    • The presence of this response means that the underlying TLS connection was successful, despite the higher-level error. The TLS connection is the focus of this test.
  • If you instead see an error message that involves TLS or HTTPS, then the test has failed. Your API client will require adjustments to its list of trusted certificate authority certificates to trust DigiCert-signed certificates.
 
To test the compatibility of an API client that uses REST to communicate with Salesforce: Thanks,
Raj

 
We are using the chatter answers in community which is going to retire after Winter 18 release. Wanted some suggestions to perform the migration...below are the research...
Investigated on Q&A Migration App but wanted to know if someone has used this and its outcome. Was there any data impact? If yes, then how can we overcome that?.
What is the alternative? Is data loader an option?
Hi All,

Please help me to get a job. Currently am working as Salesforce Developer with 2.7 years of experience.

Am ready to join immedialy to any where(Job Location : Any where).

Please some one can help me!!!

i got 50+ best answers in this forum and member from 2015.

Thanks,
Maharajan.C
+91-9042584107
maharaja0393@gmail.com
Hi All,

Please help me to get a job. Currently am working as Salesforce Developer with 2.7 years of experience.

Am ready to join immedialy to any where(India or Any Country).

Please some one can help me!!!

i got 50+ best answers in this forum and member from 2015.

Thanks,
Maharajan.C
+91-9042584107
maharaja0393@gmail.com
 
Hi All,

Can you please help me to find unused apps in my salesforce instance to Metadata Cleanup

Thanks,
Raj
Hi All,

Can anyone please give a example third party app name to calculate the Opportunity Stage Duration (inbetween stages also).
Example : Proposal,Qualified,Ready Invoice,Negoatiation,Closed won.
In there i want to calculate the stage duration from Qualified to Closed won.Starting stage must be Qualified End stage Closed won
Qualified to Ready Invoice =?
Ready Invoice to Negoatiation =?
Negoatiation to Closed won =?

And also for Sales vs Quota report third party App.

Thanks,
Raj
Hi All,

Can you please anyone give a test class for me to the below Apex Class.

Public class AccountDisplatRecClsExtn{
Public id Current_Acc_Id;
    public AccountDisplatRecClsExtn(ApexPages.StandardController controller) {
Current_Acc_Id = controller.getRecord().id;
    }
     

  public List<Question__c> getcontList(){
   List<Question__c> accList = [select id,Name,AssessmentId__c,AssessmentId__r.Name,External_ID__c,Friendly_Name__c,Question_Plain__c,Question_Style__c,Sort_Order__c,(Select Id,Name,Red_Flag__c,Scoring__c from answers__r) from Question__c where AssessmentId__c=:Current_Acc_Id ORDER by Sort_Order__c ASC];
   return accList;
  
  }
    }

Thanks,
Raj
 
Hi,

In my salesforce org when i convert a lead it creates multiple account,contacts and opportunities at the same time and when i see the created by timings and created by user both are same.

http://docs.releasenotes.salesforce.com/en-us/spring16/release-notes/rn_sales_leads_edit_converted_leads.htm

In above link there is an article i studied about permission set which will enalble us to create multiple account,contacts and opportunities and we can able to view lead again in salesforce detail page but i disabled this options.

Even though i disabled this option i have duplicates created in my salesforce org and i have lead which i can edit on detail page after it converted...I didn't have any trigger.

Please help !!!!!!!!

Thanks,
Raj
Hi Friends,

Is there any way to retrieve my SF Dev Org Because i lost my Org Due to the Authenticator App in my Mobile i.e, am uninstalled the Authenticator App in my Phone which have a link with my Dev Org.

Thanks,
Raj.
Hi All,

Please Help!!!
Evaluation Criteria : Evaluate the rule when a record is created, and any time it's edited to subsequently meet criteria
Rule Criteria Opportunity :  StageEQUALSClosed Won
Workflow Action : Email Alert

>Here First my record meet the above rule criteria based on the evaluation criteria it sends an an Email i.e Opportunity stage equals Closed   Won
>After that in that same record i change the Opportunity stage to Need Analysis so now the record dont met the criteria so there is a no        Email
>Then i changed that Opportunity record stage to Closed Won now the record meet the criteria so its send an email again but i want to stop    the Sending an Email Now.


Thanks in Advance!!!
Raj.
Hi All,

Any One  please help me to code coverge because i got only 43% coverage

ApexTrigger :-
trigger sendNotificationTrigger on CampaignMember (after insert) {
    Set<Id> LeadIds = new Set<ID>();
    Lead_Campaign__c tm;//Assinging Custom setting To the variable tm
    tm=Lead_Campaign__c.getorgdefaults();
    String Template=tm.Email_Template_ID__c;
    Decimal Days=tm.Threshold_Days__c;
     
    list <CampaignMember> theCampaignMembers = new list<CampaignMember>();
    for(CampaignMember campMem : Trigger.new){//
    if(test.isRunningTest()){
        
        Days = 0;
    }
        if(campMem.leadid != null){
            LeadIds.add(campMem.leadid);
            theCampaignMembers.add(campMem);
         
            }
    // List containing Campaign Member records to be inserted  
    List<Messaging.SingleEmailMessage> mails =new List<Messaging.SingleEmailMessage>();   
    for(Lead ld : [select id, Status,Lead_age__c, owner.email from Lead where id IN : LeadIds])
    try
    {

    if(ld.Status!='Qualified'&&ld.Lead_age__c>=Days)
    //Checking Condition Status not equal to Qualified and Lead_Age_In_days__c greater than equal to 30
    {
 
     Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();// For Email
                             
      List<String> sendTo = new List<String>();
      sendTo.add(ld.Owner.Email);//sending message via Email to the Owner of the lead
      mail.setToAddresses(sendTo);
      mail.saveAsActivity = false;
      mail.setTemplateId(Template);//Using custom setting field template as template id
      mail.setTargetObjectId(ld.OwnerId);    
      mail.setWhatId(ld.id);
      mails.add(mail);
      Messaging.sendEmail(mails);
  
}
}
 catch (Exception e)
{

  ApexPages.addMessages(e);
  Profile adminProfile = [Select id From Profile Where Name='System Administrator' Limit 1];

     Messaging.SingleEmailMessage mail=new Messaging.SingleEmailMessage();
     List<String> toAddresses = new List<String>();
     toAddresses.add(adminProfile.id);
     mail.setToAddresses(toAddresses);
     mail.setSenderDisplayName('Apex error message');
     mail.setSubject('Error from Org : ' + UserInfo.getOrganizationName());
     mail.setPlainTextBody(e.getMessage());
     Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
}
  
}
}


Test Class -:

@isTest(SeeAllData = true)
public class sendNotificationTrigger
{
static testMethod void sendNotificationTrigger ()
{
     Test.startTest();      //Creates Contact to be linked to Campaign Member
Campaign cp =  [SELECT Id FROM Campaign LIMIT 1];
       //Creates a new campaign memeber, associaites it with 1 campaign
 Lead t1 = new Lead(Company= 'TestLead', LastName= 'TestL', Email = 'none@test.com',Status = 'Open' );
 insert t1;
 CampaignMember newMember = new CampaignMember (LeadId = t1.id, status='Sent', campaignid = cp.id);
 insert newMember;
 system.assertequals(t1.status,'Open')  ;

  
 
   
 Test.stopTest();
 }


Thanks,
Raj.
Hi All,

Can any one Please help to write a test class to my Trigger


trigger sendNotificationTrigger on CampaignMember (after insert) {
    Set<Id> LeadIds = new Set<ID>();
    Test_Setting__c tm;//Assinging Custom setting To the variable tm
    tm=Test_Setting__c.getorgdefaults();
    String Template=tm.Template__c;
    Decimal Days=tm.Threshold_Days__c;
     
    
    for(CampaignMember campMem : Trigger.new){//
        if(campMem.leadid != null){
            LeadIds.add(campMem.leadid);
         
            }
            
    List<Messaging.SingleEmailMessage> mails =new List<Messaging.SingleEmailMessage>();   
    for(Lead ld : [select id, Lead_age__c, Status, owner.email from Lead where id IN : LeadIds])
    if(ld.Status!='Qualified'&&ld.Lead_Age_In_days__c>=Days)
    //Checking Condition Status not equal to Qualified and Lead_Age_In_days__c greater than equal to 30
    {
     Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();// For Email
                             
      List<String> sendTo = new List<String>();
      sendTo.add(ld.Owner.Email);//sending message via Email to the Owner of the lead
      mail.setToAddresses(sendTo);
      mail.saveAsActivity = false;
      mail.setTemplateId(Template);//Using custom setting field template as template id
       mail.setTargetObjectId(ld.Ownerid);                           
      mails.add(mail);
  Messaging.sendEmail(mails);
}
}
}

Thanks
​Raj.
Hi Friends,

Is there any way to retrieve my SF Dev Org Because i lost my Org Due to the Authenticator App in my Mobile i.e, am uninstalled the Authenticator App in my Phone which have a link with my Dev Org.

Thanks,
Raj.
Hi I have created the following Trigger that creates ten opportunities when an account has more than 99 employees. It is working as expected and the opps are being created, only issue is that they are not being linked to the account record. Any idea why that is the case?
 
trigger CreateTenOpps on Account (before insert, before update) {
    
    List<Opportunity> TenOpps = New List<Opportunity>();
    
    for (Account acc : Trigger.new) {
        if (acc.NumberOfEmployees > 99) {
            for (Integer i = 0; i < 10; i++) {
                Opportunity opp = New Opportunity(CloseDate = date.today(), 
                                                  StageName = 'Prospecting', 
                                                  Name = 'Trigger Opp',
                                                  AccountId = acc.Id);
                TenOpps.add(opp);
            }
            insert TenOpps;
        }
    }

}

 
Hi I am somewhat of a novice when it comes to apex and can't seem to work out what the problem is with line 7 of my code. I am building a practice trigger that creates 10 identical opportunities whenever an account has more than 99 employees.

I think I have set up the for loop correctly but in the developer console 'Problem' there are a number of messages on line 7
- Expecting ';' but was a '<'
- Expecting ';' but was a ','
- Expecting ';' but was a ')'

Any suggestions?
trigger CreateTenOpps on Account (before insert) {
    
    List<Opportunity> TenOpps = New List<Opportunity>();
    
    for (Account acc : Trigger.new) {
        if (acc.NumberOfEmployees > 100) {
            for (Integer i = 0, i < 10, i++) {
                Opportunity opp = New Opportunity(CloseDate = date.today(), 
                                                  StageName = 'Prospecting', Name = 'Trigger Opp');
                TenOpps.add(opp);
            }
            insert TenOpps;
        }
    }

}

 

Hello, I wrote a trigger to check if the url = 'https://sig-cb--Full.cs88.my.salesforce.com' and the profile of the current user is a specific profile (SIG-FSM-Super User) and if so the trigger shows an error message and also an image which I included in the addError function, it looks like this:

trigger ContactCreationForServiceMaxUsers on Contact (Before insert) {
   
       String baseURL = String.valueof(URL.getSalesforceBaseUrl());
      
       system.debug('<<baseURL>>' + baseURL);
       Boolean isBaseURL = baseURL.contains('https://sig-cb--Full.cs88.my.salesforce.com');
       System.debug(' >> String.valueof(URL.getSalesforceBaseUrl()) >>'+baseURL ); 
       User currentUser = [SELECT Id, Profile.Name FROM USER WHERE Id =:UserInfo.getUserId()]; 
      
       Contact c = new Contact(); 
      
       System.debug(' >> isBaseURL >>'+isBaseURL ); 
       System.debug(' >> currentUser.Profile.Name>>'+currentUser.Profile.Name ); 
   
     for(Contact c : Trigger.New){ 
          if(isBaseURL == TRUE  && currentUser.Profile.Name == 'SIG-FSM-Super User'){
           c.addError(' <p style="color:red; font-size: 20px;">Service contact creation is only allowed from “Account” tab using the blue button “Create Contact” after selecting a account”</p><img id="theImage" src="https://sig-cb--full--c.cs88.content.force.com/servlet/servlet.FileDownload?file=0159E0000002tNp" width="850px" height="100px" alt="Description of image here"/> ', false); 
          } 
     } 
}


Can anyone help me with how to build the test class for the trigger? At least theoretical.

1. First I need to create a contact
2. I need to create a user with a profile = 'super-user'
3. somehow i need to check the addError function..

Something like this...

Hello guys,
I have a trigger and I want to separate it into trigger and class. Please help.Thanks. Bellow is my trigger

trigger SumCalculation on House_Improvements__c (after insert,after update, after delete,after undelete) {
    List<id> PropertyIds = new List<id>();
    if(Trigger.isInsert || Trigger.isUndelete || Trigger.isupdate){
        For(House_Improvements__c himp1 : Trigger.new){
            PropertyIds.add(himp1.Property__c);
        }
    }
    if(Trigger.isDelete){
        For(House_Improvements__c  himp1 : Trigger.old){
            PropertyIds.add(himp1.Property__c);
        }
    }
    List<Property__c> PropertyToUpdate = new List<Property__c>();
   decimal sum;
    if(Trigger.isInsert || Trigger.isUndelete || Trigger.isupdate){
        For (Property__c q: [SELECT id,SUM_Calculations__c, (SELECT id, Price__c FROM House_Improvements__r) FROM Property__c WHERE id =:PropertyIds]){
            decimal sum=0;
            for(House_Improvements__c   p : q.House_Improvements__r)
                sum = sum + p.Price__c ;
            q.SUM_Calculations__c  = sum;
            PropertyToUpdate .add(q);
        }
        try{
            update PropertyToUpdate ;
        }Catch(Exception e){
            System.debug('Exception :'+e.getMessage());
        }
    }
    if(Trigger.isDelete){
        For(Property__c q : [SELECT SUM_Calculations__c ,(SELECT id,Price__c FROM House_Improvements__r) FROM Property__c WHERE id =: PropertyIds]){
            decimal sum = 0;
            for(House_Improvements__c  p : q.House_Improvements__r)
                sum = sum + p.Price__c ;
            q.SUM_Calculations__c  = sum;
           PropertyToUpdate .add(q);
        }
        try{
            update PropertyToUpdate ;
        }Catch(Exception e){
            System.debug('Exception :'+e.getMessage());
        }
    }
}
Hi All,

I was given this sample JSON by our partner and I am trying to write a REST Web service to ingest it but I can't seem to get it to work. I am testing it in Workbench and am getting this error:

Unexpected parameter encountered during deserialization: orderNumber at [line:2, column:17

Here is the Apex Class:
 
@RestResource(urlMapping='/DPS_Response/')
global with sharing class DPSResposnse
{
    global class AllParties
    {
        global String partyId;
        global String decision;
    }    
    
    @HttpPost
    global static String updateDPSData    (String orderNumber, AllParties[] parties)
    {
       return 'test';
    }
}

And here is the sample JSON:
{
    "orderNumber":"000042289",
    "parties":
       [
      {
        "partyId": "12345",
        "decision":    "D"    
      },
      {
        "partyId": "09876",
        "decision":    "P"        
      }

       ]
}

 
I had built a trigger in Sandbox, which finds duplicates (with the same external id) and it creates a hyperlink (in the form of a date) on the new record, to be able to link to the old record. I will show you the piece of the code that does that below. However, I accidentally forgot to change the hyperlink from the sandbox link to the production link. I now need to change all the vlaues of those hyperlinks in production. I tried something in the execute anonymous window as a test, but it didn't seem to work. I'll show you both the piece of the Handler and the attempt that I made in the execute window. 

HANDLER:
                string pdi = discharge.Previous_instances__c;
                string disId = discharge.id;
                date disDate = discharge.Discharge_Date__c;
                integer day = oldDischargeMap.get(discharge.Id).Discharge_Date__c.day();
                integer month = oldDischargeMap.get(discharge.Id).Discharge_Date__c.month();
                integer year = oldDischargeMap.get(discharge.Id).Discharge_Date__c.year();
                string dateDisplay = month + '/' + day + '/' + year;
                if(pdi == null){
                    pdi = '';}
                else{
                    pdi = pdi;}
                
                newDischarge.previous_instances__c = pdi+' '+ '<a href=https://centers--partial.lightning.force.com/'+disId+'>'+dateDisplay+ '</a>' + ' ; ' ;

EXECUTE TRIAL
list<discharge__c> disch = [select previous_instances__c from discharge__c ];
for (discharge__c dis: disch){
    if (dis.previous_instances__c != null){
    string link = dis.previous_instances__c;
    link = link.replace('<a href=https://centers--partial.lightning.force.com/', '<a href=https://centers.lightning.force.com/');
    dis.previous_instances__c = link;
        update dis;
    }}
 

Requirement Description

Requirement 1
Add business logic to Prevent a user from adding any other Task Record Types to a case with the status of Closed.

Add an error message to trigger on save of the task, if the user has added a Task where the WhatId relates to a case with a status of 'Closed'. The message to read 'Tasks cannot be added to Closed cases.'

Requirement 2
Add business logic to stop a user from adding an Event to a case with the status of Closed.

Add an error message to trigger on save of the event, if the user has added an Event where the WhatId relates to the case with a status of 'Closed'. The message to read 'Events cannot be added to Closed cases.'

I can't add it as a validation rule because WhatId is polymorphic.

Can anyone suggest the best approach.

Trigger TerritoryOwnerRestrictionTrigger on Territory__c (after insert,before Update) {
    for (Territory__c T : Trigger.new)
    {
       
      Integer i = [Select count() from Territory__c where Territory__c.OwnerId !=:T.OwnerId and Territory__c.Id !=: T.Id and Territory__c.Name=:T.Name];
        System.debug('Count :'+i);
      if(i>2)
      {
         T.addError('we can not Assign a zipcode to this user, Only a single zipcode is assigned to only three Owners.'); 
      }
    }
}
Avoid IF ELSE bcz if we have 100 or 1000 records then what we can do ?? Need Dynamic trigger or some thing new from you.

WARMS REGARD,
Prashant Pandey
Hello,

I have below config:
Account
   Oppourtunty
     Quote
       field (LookUptoAccount__c)
I have below usecase,
When an account is updated on Opportunity, i want that all the quotes should update LookUptoAccount__c with the name of account, 

how can i do it ? workfow or rocessbuilder, thank you in advance
Can anyone shed some light on this issue?  We noticed that Closed was not showing up as a case status anymore on our cases.  I have checked the field and all the values are there.  I also checked the support processes's and all of them have the status Closed in the available column.  Not sure what I am missing, but it is extremely frustrating as our support agents can't close cases.
Do anyone have idea to pass the Selectlist value to the Javascript in Salesforce using Document.Element.id .

i need to get the selected value as an alert ;;
 Please let me know how can i get the values , using the javascript Element.id Only

Or provide useful links will go through it .. 
<apex:page id="pg" >
  
 <apex:form id="frm">
 
 <script>
      
      function  getvalue(){
        alert("hi");
       var selectedvalue =document.getElementById("pg:frm:otptpanel:selectlist").value; 
       alert(selectedvalue);
      }
     
      </script>
  <apex:outputPanel id="otptpanel" >
   
    <apex:selectList id="selectedval" size="1" onchange="getvalue()"> 
   <apex:selectOption itemLabel="Hyderbad" itemValue="Hyd"/>
     <apex:selectOption itemLabel="Banglore" itemValue="Ban"/> 
      <apex:selectOption itemLabel="Chennai" itemValue="Che"/>  
    
   </apex:selectList>
  
      </apex:outputPanel>
  
   
 
 
 </apex:form>
 
</apex:page>

using the Javascript Element only .. 
Thanks
Deepika
 
I am getting the above error from this piece of code.
public Set<String> RatingRelease {get;set;}

//Returns the Rating Release date or the rating pending
        IF (Today < currentQRpCase.Rating_Externally_Visible_Date__c){
           String RatingRelease = 'Rating Pending';
        } else IF(Today > currentQRpCase.Rating_Externally_Visible_Date__c){
           String RatingRelease = currentQRpCase.Rating_Externally_Visible_Date__c.format();
        } else {
           String RatingRelease = '';
        }

 
Can anyone look at this and tell me why this is NOT prompting the validation rule to fire?
The rule says, IF first field = x and the second field = NULL, then fire rule.
 
AND(ISPICKVAL(Sales_Status__c, "Startup (pre-startup meeting)"),
Startup_Meeting_Date__c = NULL)

 
User-added image

trigger AccountTrigger on Account (after insert) {
    if (Trigger.isBefore  && Trigger.isInsert) {
         AccountTriggerHandler.CreateAccounts(Trigger.New);
    }
}

@isTest
public class AccountTriggerTest {
    
    @isTest static void TestCreate200Records()
    {   
        List<Account> accts = new List<Account>();
        for(Integer i=0; i < 200; i++) {
            Account acct = new Account(Name='Test Account ' + i, BillingState = 'CA');
            accts.add(acct);
        }
            Test.startTest();
            insert accts;
            Test.stopTest();            
            System.assertEquals(200, [SELECT Count() FROM Account WHERE ShippingState = 'CA' ]);            
    }
}


public class AccountTriggerHandler {
    public static void CreateAccounts(List<Account> acclist)
    {
        for(Account acc:acclist)
        {
            if(acc.ShippingState!=acc.BillingState)
            {
                acc.ShippingState = acc.BillingState;
            }

        }

    }

}


I've tried test--> run all and still have the same error, i dont know what else to do

 
I’m working on my first Visualforce page and controller. Thanks to others on the community, I’ve gotten everything to work and now I need to write the test class to move it to production. I’ve never done this before. I’ve completed the Apex Testing module in Trailhead, but I’m still lost on how to create the test for my project. This just is not clicking for me. Below is my code for the Visualforce page and for the controller. Help is greatly appreciated.

<apex:page StandardController="Contract" extensions="ContractProductsController">
  <apex:form >
        <apex:pageBlock >
                       <apex:pageBlockTable value="{!lineItems}" var="oli">
                 <apex:column >
                  <apex:facet name="header">Product Code</apex:facet>
                       {!oli.PricebookEntry.Product2.ProductCode}
                </apex:column>
                <apex:column >
                    <apex:facet name="header">Product</apex:facet>
                       {!oli.PricebookEntry.Name}
                </apex:column>
              </apex:pageBlockTable>  
          
          </apex:pageBlock>
    </apex:form>
</apex:page>


Controller:

public class ContractProductsController {
 public List<OpportunityLineItem> lineItems { get; set; }
   
    Public ContractProductsController( ApexPages.StandardController std )
                {
                                if( std.getRecord().Id != null )
                                {
                                                Contract con = [ Select Id, Opportunity__c from Contract where Id =: std.getRecord().Id ];
                                               
                                                lineItems = [ Select Id, OpportunityID, PricebookEntry.Name, PricebookEntry.Product2.ProductCode,Product2ID,PricebookEntryID
            from OpportunityLineItem where OpportunityID =: con.Opportunity__c ];
                                }
                                else
                                {
                                                lineItems = new List<OpportunityLineItem>();
                                }
    }        
}
 <ui:InputTextArea value="{!mon.MonthDescription}" class="vw_Plan_blu_bodr" aura:id = "Testdes" disabled="{!v.isDisabled == false}" />
                            
                           
 <ui:InputText value="{!mon.MonthDescription}" class="vw_Plan_blu_bodr" aura:id = "Testdes1" disabled="{!v.isDisabled == True}" />
                            
  • February 07, 2020
  • Like
  • 0
I am trying to display the value of a related custom object field along with the parent fields on my component html.
Here is the SOQL - The below works, I get the data of the child object with the values from the object
SELECT Name,sumchans__Province_Code__c,
    (select sumchans__Penetration__c, sumchans__Total_Units__c,sumchans__On_Billings__c, sumchans__Date_Of_Calculation__c 
    from sumchans__City_Stats__r) FROM sumchans__CITY_MASTER__c
Here is the wire service code:
import { LightningElement, wire } from 'lwc';
import getCityStats from '@salesforce/apex/mduMarketAnalysisController.getCityStats';  
export default class MduPenetration extends LightningElement {
    @wire(getCityStats)cityMaster;        
}

And here is the Component HTML. This just shows the parent fields values not anything from the child, but I don't get any errors.
 
<template if:true={cityMaster.data}>
            <template for:each={cityMaster.data} for:item="city">
                <lightning-layout horizontal-align="center" key={city.Id}>
                    <lightning-layout-Item>
                        {city.Name}
                    </lightning-layout-Item>
                    <lightning-layout-Item>
                        {city.sumchans__City_Stats__r.sumchans__Total_Units__c}
                    </lightning-layout-Item>
                </lightning-layout>                  
            </template>


 

Hi, folks!

Could you please help me with the following scenario?

I have created a <lightning-datatable> tag in my <template> and I need to hidden the dropdown list with the options Wrap Text and Clip Text.

Screenshot:

As far as I know, there isn't any OOTB class that could help me with that.

When trying to apply a custom style, nothing happens:

.THIS slds-button slds-button_icon-baree{
    display: none ;
}

Has anyone any idea of how to solve that?

Thanks in advance.

 

Hello,

Did anyone else notice that the view state limit in Visualforce pages has been increased from 135 to 170 KB in the new release of Spring 2019