• RajeshPunjabi
  • 15 Points
  • Member since 2018
  • Mr
  • Mav3rik

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 17
Hi All,

I have a scenario where i need to get a field(Notes_of_request__c) from Child object(Request) where the master is Case.
The Email template is in Case.
Where the case and requests are Master-detail, case is master and Detail is request.

How to get the field from child in Case Email templete, i mean in HTML templates.

Thanks in advance

Please help me. What's wrong with my Queueable Class?

public class FolderDisplayInfo implements Queueable, Database.AllowsCallouts {
    public List<Folder__c> fld; 
        public FolderDisplayInfo(List<Folder__c> folderList) {
                fld = folderList;

        public void execute(QueueableContext context) {
            System.debug('Folders: ' + fld);
            Http http = new Http();
            HttpRequest httpReq = new HttpRequest();
            httpReq.setEndpoint('<my endpoint>');
            HttpResponse res = http.send(httpReq);
            System.debug('Response: ' + res);
            if(res.getstatusCode() == 200 && res.getbody() != null){
                response = (List<cls_Response>)JSON.deserialize(res.getBody(), List<cls_Response>.class);
                System.debug('Body: ' + res.getBody());
            //update folders here...


    public class cls_Response {
        public String folderName {get;set;}
        public String recordID{get;set;}
        public String parentFolder{get;set;}
        public String bucketID{get;set;}
    public List<cls_Response> response {get;set;}

Help me to get this response:

"00BO00000ABCD60EFG" : { //Record Id
	   "folders" : [ //Object
			"name" : "foldertest",
			"sfid" :  "00B0000ABC3ab",
			"parent" : "<FOLDER LOOKUP field>",
			"folderID" : "<BUCKET ID>",
			"RecordID" : "<Record ID>"
Hi There, I need some help to write some APEX, my developer skills are very limited.  We have a field called Total_Recurring__c . When a new order is created we want to take the Total_Recurring__c and update Previous_Months_Total__c . The end goal is to see the current total and the previous month's total 
 have a very strange error, and frankly I don't have any clue what's causing it. I'm attempting to set up outbound messages for a salesforce account (which send SOAP messages) and I'm running a Ubuntu server through Digital ocean. I've installed and configured Nginx. Now, every message that salesforce attempts to send fails out with a 403 error which points me to the server and Nginx. But when I tail the logs (both regular and access) I don't see any indication that the post is even making it to the server. I have a firewall UFW, but it shouldn't be blocking it from making it to Nginx and shouldn't be sending a 403. And we use cloudflare, but I don't have any inbound rules set up that should be blocking this. The weirdest part is that I can send a postman post request and it works just fine. I see the logs show up and everything. Any ideas here?

I have configured Live agent for the org, created skills, assigned the System Admin Profile to all the skills. Created a button and deployment.


I create a Sites VF page using the code from the deployment guide.


No matter what I do, the Offline element always shows. I cannot get the online element to show despite two live agents being logged into the live agent console and the status as available.


Anyone have any ideas? btw, this is in sandbox.


here is the VF code, very basic, right now just trying to get the ONLINE element to display.


<apex:page >
   Thank you for contacting customer support
   <!-- START Button code -->
      <a id="liveagent_button_online_573W00000004CAL" href="javascript&colon;//Chat" style="display: none;" onclick="liveagent.startChat('573W00000004CAL')">ONLINE</a><div id="liveagent_button_offline_573W00000004CAL" style="display: none;">OFFLINE</div><script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('573W00000004CAL', document.getElementById('liveagent_button_online_573W00000004CAL'));
liveagent.showWhenOffline('573W00000004CAL', document.getElementById('liveagent_button_offline_573W00000004CAL'));

   <!-- END Button code -->
   <apex:outputtext value="TEST TEXT"/>
   <!-- Deployment code -->
<script type='text/javascript' src='https://c.la2cs.salesforceliveagent.com/content/g/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.la2cs.salesforceliveagent.com/chat', '572W00000004C9X', '00DW0000000IRe9');