• Kendall Buchanan
  • NEWBIE
  • 4 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies
renderAs="pdf", in VisualForce, appears to have been broken in recent days, for rendering images.

We've been producing PDF invoices with our logo now for six months, and a few days ago, the PDF generator started cutting the logo in half. We've spent two days trying to isolate the problem, and concluded that renderAs="pdf" is the source.

When we remove renderAs="pdf" from the Visualforce page, the image appears correct in HTML. If we replace it, the image is cut in half, with the second half trailing into a light gradient. The logo is a static resource hosted in Salesforce.

Thoughts anyone?
Can't figure out how to trigger a flow via the REST API.

Spring '15 says it supports it: http://www.salesforce.com/us/developer/docs/api_rest/api_rest.pdf (page 110)

Here's a shorter introduction: https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_distribute_system_rest.htm

Our sandbox environment has Spring '15 enabled. Any requests to /services/data/v33.0/actions/custom result in "The requested resource does not exist", POST or GETs.

Any advice?
Our org has one asynchronous task, triggered by a @future. It's simply an HTTP request to an external webservice. Usually the @future processes within a second or two. Often, however, it can take 30, 60, 120 seconds. We've seen it take as long as *three or four minutes* to process!

Is this normal? Is there any way to overcome this?

Here's the relevant code (simplified):
 
public class SyncClass {
  public static void requestSync() {
    String endpoint = System.Label.Sponsors_App_Endpoint;

    HttpRequest req = new HttpRequest();
    HttpResponse res = new HttpResponse();
    Http http = new Http();

    req.setEndpoint(endpoint + '/my-endpoint');
    req.setMethod('POST');
    req.setBody('');

    try {
      res = http.send(req);
    } catch(System.CalloutException e) {
      System.debug('Callout error: '+ e);
      System.debug(res.toString());
    }
  }
  
  @future(callout=true)
  public static void asyncRequestSync() {
  	SyncClass.requestSync();
  }
}

 
Hi All,

  I am trying to load data to contact object through excel.the data is loded successfully.but the data is not listed in contact list view.it shows the error This list view isn't available in Lightning Experience. To see this list view, use Salesforce Classic.
Error

can any one try to help me.waiting for your response.

Thank you...
Can't figure out how to trigger a flow via the REST API.

Spring '15 says it supports it: http://www.salesforce.com/us/developer/docs/api_rest/api_rest.pdf (page 110)

Here's a shorter introduction: https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_distribute_system_rest.htm

Our sandbox environment has Spring '15 enabled. Any requests to /services/data/v33.0/actions/custom result in "The requested resource does not exist", POST or GETs.

Any advice?
Our org has one asynchronous task, triggered by a @future. It's simply an HTTP request to an external webservice. Usually the @future processes within a second or two. Often, however, it can take 30, 60, 120 seconds. We've seen it take as long as *three or four minutes* to process!

Is this normal? Is there any way to overcome this?

Here's the relevant code (simplified):
 
public class SyncClass {
  public static void requestSync() {
    String endpoint = System.Label.Sponsors_App_Endpoint;

    HttpRequest req = new HttpRequest();
    HttpResponse res = new HttpResponse();
    Http http = new Http();

    req.setEndpoint(endpoint + '/my-endpoint');
    req.setMethod('POST');
    req.setBody('');

    try {
      res = http.send(req);
    } catch(System.CalloutException e) {
      System.debug('Callout error: '+ e);
      System.debug(res.toString());
    }
  }
  
  @future(callout=true)
  public static void asyncRequestSync() {
  	SyncClass.requestSync();
  }
}

 
Hello,

I'm stuck and hoping someone can help. I refreshed my sandbox and I can login via the web but cannot log in via the API. I use Eclipse for Force development and can't reconnect. I also tried via the PHP soapclient - which is what we use internally - and get the same error. Following the refresh I logged in and reset my security token. I've tried this three times but it continues to fail. Like I said, I can log in normally but not through the API so it suggests a problem with the security token or API. I am using a default System Administrator profile that has API Enabled checked by default.

<?php
require_once ('soapclient/SforceEnterpriseClient.php');
define("USERNAME", "jason@finch.com.dev");
define("PASSWORD", "XXXXXXXX");
define("SECURITY_TOKEN", "XXXXXXXXXXXXXXXXXXXXX");
$mySforceConnection = new SforceEnterpriseClient();
$wsdl = 'soapclient/enterprise.wsdl.xml';
$mySforceConnection->createConnection($wsdl);
$mySforceConnection->login(USERNAME, PASSWORD.SECURITY_TOKEN);
$query = "select email from user";
$result = $mySforceConnection->query($query);
print_r($result);
?>

This works on production but fails in the sandbox with the following error:
Fatal error: Uncaught SoapFault exception: [INVALID_LOGIN] INVALID_LOGIN: Invalid username, password, security token; or user locked out. in /Applications/XAMPP/xamppfiles/htdocs/trunk/plugins/system/salesforce/soapclient/SforceBaseClient.php:168

Any other suggestions? 

I have an interesting ask from the business, where they want to know all the accounts of a specific type that do not have any children.

 

Based on that, I thought a left anti join would work:

SELECT Name,Id FROM Account

WHERE   Id NOT IN
        (SELECT ParentId FROM Account)

 

But I get an error message:

MALFORMED_QUERY:
        (SELECT ParentId FROM Account)
                              ^
ERROR at Row:3:Column:31
The inner and outer selects should not be on the same object type

 

 

Is there a way to run this is a soql query?