• Xexi
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
We have a Visualforce page that is used to upload multiple images. The problem is that to validate, if it shows any errors, the page loses all of the images path.

I understand that safety is a value that is not retained. Anyone know a way I do not miss the path?

Thanks
  • February 07, 2013
  • Like
  • 0

I need a custom button in Salesforce that It redirect in other web

 

I need a custom button that redirects to another web and will automatically log. The external web only reveives by POST.

 

*** I'm trying to do the following. This returns the HTML of the web. But do not know how to paint.

 

public pagereference contactSend2() {
            HttpRequest req= new HttpRequest();
            HttpResponse res = new HttpResponse();
            Http http = new Http();
            req.setEndpoint('http://extranet.groupalia.com/user/login'); 
            req.setMethod('POST');
            req.setBody('username=***&password=***'); 
            res = http.send(req);
            return null;
   }

 

*** Also I'm trying this:

 

public static HTTPResponse contactSend() {
      HttpRequest req = new HttpRequest();
      req.setMethod('POST');
      req.setEndpoint('http://extranet.groupalia.com/user/login'); 
      req.setBody('username=***&password=***');
      req.setTimeout(60000);
      
      Http http = new Http();
      HTTPResponse res = http.send(req);
      return res;
    }

 

Please anyone have any idea? I'm going crazy.

 

Sergio.

  • February 06, 2013
  • Like
  • 1

I need a custom button in Salesforce that It redirect in other web

 

I need a custom button that redirects to another web and will automatically log. The external web only reveives by POST.

 

*** I'm trying to do the following. This returns the HTML of the web. But do not know how to paint.

 

public pagereference contactSend2() {
            HttpRequest req= new HttpRequest();
            HttpResponse res = new HttpResponse();
            Http http = new Http();
            req.setEndpoint('http://extranet.groupalia.com/user/login'); 
            req.setMethod('POST');
            req.setBody('username=***&password=***'); 
            res = http.send(req);
            return null;
   }

 

*** Also I'm trying this:

 

public static HTTPResponse contactSend() {
      HttpRequest req = new HttpRequest();
      req.setMethod('POST');
      req.setEndpoint('http://extranet.groupalia.com/user/login'); 
      req.setBody('username=***&password=***');
      req.setTimeout(60000);
      
      Http http = new Http();
      HTTPResponse res = http.send(req);
      return res;
    }

 

Please anyone have any idea? I'm going crazy.

 

Sergio.

  • February 06, 2013
  • Like
  • 1
We have a Visualforce page that is used to upload multiple images. The problem is that to validate, if it shows any errors, the page loses all of the images path.

I understand that safety is a value that is not retained. Anyone know a way I do not miss the path?

Thanks
  • February 07, 2013
  • Like
  • 0

I need a custom button in Salesforce that It redirect in other web

 

I need a custom button that redirects to another web and will automatically log. The external web only reveives by POST.

 

*** I'm trying to do the following. This returns the HTML of the web. But do not know how to paint.

 

public pagereference contactSend2() {
            HttpRequest req= new HttpRequest();
            HttpResponse res = new HttpResponse();
            Http http = new Http();
            req.setEndpoint('http://extranet.groupalia.com/user/login'); 
            req.setMethod('POST');
            req.setBody('username=***&password=***'); 
            res = http.send(req);
            return null;
   }

 

*** Also I'm trying this:

 

public static HTTPResponse contactSend() {
      HttpRequest req = new HttpRequest();
      req.setMethod('POST');
      req.setEndpoint('http://extranet.groupalia.com/user/login'); 
      req.setBody('username=***&password=***');
      req.setTimeout(60000);
      
      Http http = new Http();
      HTTPResponse res = http.send(req);
      return res;
    }

 

Please anyone have any idea? I'm going crazy.

 

Sergio.

  • February 06, 2013
  • Like
  • 1

Hi,

 

I have the following requirement:

 

1. There is a External web site that should be shown when user clicks a link on opportunity detail page.

 

2. Initially this web page expects username and password. How we can authenticate the user  without asking to enter username and password when he navigates to this web page? (SSO from Salesforce.com to other secured websites).

 

3. This external web page should get auto populated with the info of Opportunity object from where it is initiated.

 

Your help is highly appreciated.

 

Thanks

Bibek