• adil ansari 12
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
Below is the code. Can anyone tell how to implement retry logic when the 2 minutes http request get timed out.
 
public static void sendOptyInfo(Set <Id> oppIdSet) {
    try{
        for (Opportunity opp: [SELECT id ,StageName, Account.Name  from Opportunity where id in: oppIdSet]){
            
            String jsonBody = JSON.serialize(new Wrapper(opp));
            HttpRequest request = new HttpRequest();
            HttpResponse response = new HttpResponse();
            
            Http http = new Http();
            
            Api_Request__c apiReq = new Api_Request__c();
            apiReq.Opportunity__c = opp.id;
            apiReq.Stage_Name__c = opp.StageName;
            apiReq.Account_Name__c = opp.Account.Name;
            
            insert apiReq;
            
            request.setEndpoint('');
            request.setHeader('Content-Type','application/json'); 
            request.setMethod('GET');
            request.setBody(jsonBody);
            request.setTimeout(120000);
            system.debug('opp json' +jsonBody);
            
            response = http.send(request);
            if (response.getStatusCode() == 200) {
                System.debug('Response-' + response);
                Object results = (Object) JSON.deserializeUntyped(response.getBody());
                
            }
        }
        
    }
    catch(System.CalloutException e){
        System.debug('Error-' + e.getMessage());   
    }
}

 
I have deployed the source of LWC component using sfdx force:source:push command and I need to open my LWC component in Developer Console defined like 
export default class GanttView extends LightningElement
How can I edit it using Developer Console?
  • September 11, 2020
  • Like
  • 0
Hi Guys,
I am Suneel, working on Java from past 2 years onwards. Right now I want to change my platform from Java to Salesforce CRM. 
Is that a good decision I am taking right now? I don't know how the career growth will be in salesforce. But I am interested in working Cloud.
So guys could you please suggest me your views and guidence about to convert into CRM side?

Thanks,
Suneel.