• abhi09
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi All,

public class customcontroller {
-----------------------------------
------------------------------------
--------------------------------------
public PageReference finalnext() {
----------------------
-----------------------
insert ld ; // inserting lead ld
Household(ld.id);
}

public PageReference Household(string id){
pagereference pdfpage = new pagereference('/apex/hoh?leadid='+leadid');
attachment attpdf = new attachment();
attpdf.body = pdfpage.getcontent();
attpdf.name = 'hh.pdf';
attpdf.ContentType = '.pdf';
attpdf.parentid = leadid;
insert attpdf;
}
} // end of controller



hoh visual force controller

public class hohcontroller{

public hohcontroller(){
id leadid=apexpages.currentpage().getparameters().get('leadid');
system.debug('++++++++++++ leadid+++++++++++++++++' +leadid);
lead ld = [select fields from lead where id =: leadid];

}


} // End of hohcontroller

 

If you look at the code, first I am inserting lead ld in the finalnext() then I am calling Household(ld.id) function and passing leadid. In the Household function, I am creating pdf by passing leadid to hoh visual force page.
In the hohcontroller, I can see the leadid in the debug statement but still the query is returning no records. Any help would be appreciated.

Thanks
Abhi

  • January 25, 2013
  • Like
  • 0

Hello Friends,

 

      I am trying to hit salesforce SOAP webservice from external application. Instead of invoking salesforce login method and using SessionID for authentication, can I use Global HTTP authentication for soap requests to salesforce ?

  • November 26, 2012
  • Like
  • 0

I have a requirement that when partner portal user sends an email with file attachment , can we automate the process of attaching that file to a respective lead ? other question is does the partner portal user gets free access to mobile lite ?

 

Thanks in advance !!

 

Hi All,

public class customcontroller {
-----------------------------------
------------------------------------
--------------------------------------
public PageReference finalnext() {
----------------------
-----------------------
insert ld ; // inserting lead ld
Household(ld.id);
}

public PageReference Household(string id){
pagereference pdfpage = new pagereference('/apex/hoh?leadid='+leadid');
attachment attpdf = new attachment();
attpdf.body = pdfpage.getcontent();
attpdf.name = 'hh.pdf';
attpdf.ContentType = '.pdf';
attpdf.parentid = leadid;
insert attpdf;
}
} // end of controller



hoh visual force controller

public class hohcontroller{

public hohcontroller(){
id leadid=apexpages.currentpage().getparameters().get('leadid');
system.debug('++++++++++++ leadid+++++++++++++++++' +leadid);
lead ld = [select fields from lead where id =: leadid];

}


} // End of hohcontroller

 

If you look at the code, first I am inserting lead ld in the finalnext() then I am calling Household(ld.id) function and passing leadid. In the Household function, I am creating pdf by passing leadid to hoh visual force page.
In the hohcontroller, I can see the leadid in the debug statement but still the query is returning no records. Any help would be appreciated.

Thanks
Abhi

  • January 25, 2013
  • Like
  • 0

Hello Friends,

 

      I am trying to hit salesforce SOAP webservice from external application. Instead of invoking salesforce login method and using SessionID for authentication, can I use Global HTTP authentication for soap requests to salesforce ?

  • November 26, 2012
  • Like
  • 0
Can anybody please tell me wether we can capture signature in visualforce page.
  • April 02, 2009
  • Like
  • 0