• Sujji
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
Hi,

I am trying to make a callout from a Queuable Class that allows callouts.

public without sharing class ClassA implements Queueable, Database.AllowsCallouts {
 
  public void execute(QueueableContext context) {
    sendRef(varA, varB);
  }

  public static void sendRef(String varA, String varB) {
    
      HTTP call1 = new HTTP();
      HTTPRequest request1 = new HTTPRequest();
      .....
     response = call1.send(request1)
    ...
}

This class is called from a) Batch process and also from b) Custom Button.

When called from batch:
 System.enqueueJob(
                new ClassA(Parm1, Parm2)
            );

When called from button:
ClassA.sendRef(Parm1, Parm2);


Now the issue is that the statement http.send(request) is not working recently from Batch. Can anyone please help.

The same piece of code is working when submitted as a queuable .
  • October 26, 2018
  • Like
  • 0
Hi,

Can someone please tell me what is the difference between displaying a filed using
a) Javascrip:
    document.getElementById('{!$Component.filed}').style.display = 'block'; (When a condition is met, changing the display from none to block)
b) Actionsupport:
Using Rerender to display a panel/field when an event occurs. 
 
  • November 11, 2017
  • Like
  • 0
I want to know what kind of licenses are used for an enterprise website developed using Force.com. How are the licenses used/assigned to users visiting the website. A User can visit the website as a guest or create an account. As we are not aware of how many users might visit the website, how are the licenses purchased?
  • February 09, 2017
  • Like
  • 0
Hi,

I am trying to make a callout from a Queuable Class that allows callouts.

public without sharing class ClassA implements Queueable, Database.AllowsCallouts {
 
  public void execute(QueueableContext context) {
    sendRef(varA, varB);
  }

  public static void sendRef(String varA, String varB) {
    
      HTTP call1 = new HTTP();
      HTTPRequest request1 = new HTTPRequest();
      .....
     response = call1.send(request1)
    ...
}

This class is called from a) Batch process and also from b) Custom Button.

When called from batch:
 System.enqueueJob(
                new ClassA(Parm1, Parm2)
            );

When called from button:
ClassA.sendRef(Parm1, Parm2);


Now the issue is that the statement http.send(request) is not working recently from Batch. Can anyone please help.

The same piece of code is working when submitted as a queuable .
  • October 26, 2018
  • Like
  • 0
I want to know what kind of licenses are used for an enterprise website developed using Force.com. How are the licenses used/assigned to users visiting the website. A User can visit the website as a guest or create an account. As we are not aware of how many users might visit the website, how are the licenses purchased?
  • February 09, 2017
  • Like
  • 0