• Anthony.T
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 3
    Replies

I received this notification via email:

You have one or more certificates in your Salesforce org Macadamian Technologies Inc 00D2f0000008afX that will expire soon. Review the list below and visit Certificate and Key Management from Setup to make an update.
   - revenueOutlook, Self-Signed, expires on 2/14/2020. Warning: This certificate will expire in 10 day(s).


I had the same email for another certificate "Self-Signed 2020", but I fixed it via the Identify Provider page. However, I'm not sure what to do with this "revenueOutlook" certificate which I believe is one of our internal apps. Way before my time.

Does anyone have any idea on how to renew this certificate and also track if this certificate is currently being used?

Thank you!

Hello world~

I am very new to Apex. I am currently working on the code below that would allow a lead to be removed from a cadence when deemed fit:

public class RemoveTargetFromSalesCadence {

   @InvocableMethod(label='Remove Target From Sales Cadence' description='Uses REST Invocable Action to remove a Target to a Sales Cadence')
   public static void removeTarget(List<RemoveTargetRequest> targetsToRemove) {
       System.debug('*** Targets to remove *** ' + targetsToRemove);
       if (targetsToRemove != null) {
           for (RemoveTargetRequest req : targetsToRemove) {
               System.debug('*** request *** ' + req);
               System.debug('\ttarget: ' + req.targetId);
               System.debug('\tcompletion reason code: ' + req.completionReasonCode);
               sendRequest(req.targetId, req.completionReasonCode);
           }
       } else {
           System.debug('*** null targetsToRemove received ***');
       }
   }

   @future(callout = true)
   private static void sendRequest(String targetId, String completionReasonCode) {
       String sfdcURL = URL.getSalesforceBaseUrl().toExternalForm();
       String actionsRestURL = sfdcURL + '/services/data/v45.0/actions';
       String removeTargetRESTUrl = actionsRestURL + '/standard/removeTargetFromSalesCadence';

       HttpRequest httpReq = new HttpRequest();
       httpReq.setMethod('POST');
       httpReq.setHeader('Authorization', 'OAuth ' + UserInfo.getSessionId());
       httpReq.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());
       httpReq.setEndpoint(removeTargetRESTUrl);
       httpReq.setHeader('Content-Type', 'application/json');
       httpReq.setBody('{"inputs" : [{"completionReasonCode" : "' + completionReasonCode + '", "targetId" : "' + targetId + '"}]}');

       String response = '';
       try {
           Http http = new Http();
           HttpResponse httpResponse = http.send(httpReq);
           if (httpResponse.getStatusCode() == 200) {
               response = JSON.serializePretty(JSON.deserializeUntyped(httpResponse.getBody()));
           } else {
               System.debug('http response: ' + httpResponse.getBody());
               throw new CalloutException(httpResponse.getBody());
           }
       } catch (System.Exception e) {
           System.debug('ERROR! ' + e);
           throw e;
       }

       System.debug('response: ' + response);
   }

   public class RemoveTargetRequest {
       @InvocableVariable(required=true)
       public Id targetId;

       @InvocableVariable(required=true)
       public String completionReasonCode;
   }
}

I am getting this error message after deploying it to my production and I don't know what this means. Could somebody please clarify and help me out? 
User-added image

Thanks so much.
Hi, every morning I am getting these error messages when I log into Salesforce. Could someone please explain to me why this is happening and how I can fix this?

User-added image
Hi everyone,

I created an Apex code in my sandbox (following this link (https://help.salesforce.com/articleView?id=hvs_cadences_auto_remove_targets_process_apex.htm&type=5) and this link (https://help.salesforce.com/articleView?id=changesets_outbound_components_select.htm&type=5)) but cannot get it to upload to my Production Org. Anyone know why it says I am not authorized to do so?

User-added image
Any help is much appreciated!!
Hey all, I am trying to create a flow + process builder to remove "unqualified" leads from a sales cadence but got this error message:
User-added image

My flow to find a lead who's in a cadence (following this URL (https://help.salesforce.com/articleView?id=hvs_cadences_auto_add_targets_flow.htm&type=5)):
User-added imageUser-added imageUser-added image

Anyone know what I'm doing wrong?

 
Hello world~

I am very new to Apex. I am currently working on the code below that would allow a lead to be removed from a cadence when deemed fit:

public class RemoveTargetFromSalesCadence {

   @InvocableMethod(label='Remove Target From Sales Cadence' description='Uses REST Invocable Action to remove a Target to a Sales Cadence')
   public static void removeTarget(List<RemoveTargetRequest> targetsToRemove) {
       System.debug('*** Targets to remove *** ' + targetsToRemove);
       if (targetsToRemove != null) {
           for (RemoveTargetRequest req : targetsToRemove) {
               System.debug('*** request *** ' + req);
               System.debug('\ttarget: ' + req.targetId);
               System.debug('\tcompletion reason code: ' + req.completionReasonCode);
               sendRequest(req.targetId, req.completionReasonCode);
           }
       } else {
           System.debug('*** null targetsToRemove received ***');
       }
   }

   @future(callout = true)
   private static void sendRequest(String targetId, String completionReasonCode) {
       String sfdcURL = URL.getSalesforceBaseUrl().toExternalForm();
       String actionsRestURL = sfdcURL + '/services/data/v45.0/actions';
       String removeTargetRESTUrl = actionsRestURL + '/standard/removeTargetFromSalesCadence';

       HttpRequest httpReq = new HttpRequest();
       httpReq.setMethod('POST');
       httpReq.setHeader('Authorization', 'OAuth ' + UserInfo.getSessionId());
       httpReq.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());
       httpReq.setEndpoint(removeTargetRESTUrl);
       httpReq.setHeader('Content-Type', 'application/json');
       httpReq.setBody('{"inputs" : [{"completionReasonCode" : "' + completionReasonCode + '", "targetId" : "' + targetId + '"}]}');

       String response = '';
       try {
           Http http = new Http();
           HttpResponse httpResponse = http.send(httpReq);
           if (httpResponse.getStatusCode() == 200) {
               response = JSON.serializePretty(JSON.deserializeUntyped(httpResponse.getBody()));
           } else {
               System.debug('http response: ' + httpResponse.getBody());
               throw new CalloutException(httpResponse.getBody());
           }
       } catch (System.Exception e) {
           System.debug('ERROR! ' + e);
           throw e;
       }

       System.debug('response: ' + response);
   }

   public class RemoveTargetRequest {
       @InvocableVariable(required=true)
       public Id targetId;

       @InvocableVariable(required=true)
       public String completionReasonCode;
   }
}

I am getting this error message after deploying it to my production and I don't know what this means. Could somebody please clarify and help me out? 
User-added image

Thanks so much.
Hi everyone,

I created an Apex code in my sandbox (following this link (https://help.salesforce.com/articleView?id=hvs_cadences_auto_remove_targets_process_apex.htm&type=5) and this link (https://help.salesforce.com/articleView?id=changesets_outbound_components_select.htm&type=5)) but cannot get it to upload to my Production Org. Anyone know why it says I am not authorized to do so?

User-added image
Any help is much appreciated!!
Hey all, I am trying to create a flow + process builder to remove "unqualified" leads from a sales cadence but got this error message:
User-added image

My flow to find a lead who's in a cadence (following this URL (https://help.salesforce.com/articleView?id=hvs_cadences_auto_add_targets_flow.htm&type=5)):
User-added imageUser-added imageUser-added image

Anyone know what I'm doing wrong?