• kardolus
  • NEWBIE
  • 50 Points
  • Member since 2011

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

Hi,

 

I have a VisualForce form field which is used to pass an argument to an Apex method. 

 

I want lookup functionality (to the Campaign object) on this particular field. Users select a campaign, then it gets passed to the Apex method.

 

Is that somehow possible? 

We cannot execute searches in sf4twitter anymore. The package is trying to insert a field longer than 255 characters in the sf4twitter__Last_Tweet_Ids__c field.

 

Did anyone encounter the same issue? Is it solveble with a Trigger before upsert?

 

error: STRING_TOO_LONG in Salesforce for Twitter and Facebook (v4)

 

2011-08-18 22:36:43 +0200 | Manual search by keyword finished. Search id:a0pD0000002BGpIIAW, Update failed. First exception on row 0 with id a0pD0000002BGpIIAW; first error: STRING_TOO_LONG, Last Tweet Ids: data value too large: 93270451278712832,93270451278712832,93270512708501505,93270648138383360,93270648138383360,93271094542336001,93271094542336001,98318460739780608,101296822202531841,101952570137915392,101952946392150016,103916366783975424,103766241453420544,101944792103141376 (max length=255): [sf4twitter__Last_Tweet_Ids__c]




Hi, 

 

I'd like to (automatically) attach an extra document to the Quotes in SalesForce. I was first thinking about overriding the Email Quote button with a link. But unfortunately it seems like you can only add one document to your quote using the &doc_id attribute. Was also thinking about making my own VisualForce page, can create all those Task fields the standard button makes, but which pagereference is actually linked to the Task called 'Send an Email'? You get to that page when clicking 'Email Quote'. 

 

Already overriden the 'New Quote' and 'Create PDF' buttons with VisualForce + Apex. I first had the idea that I would add an extra attachment to the Quote object. But when you click 'Email Quote', that attachment doesn't show up. 

 

The attachment was created using the standard Attachment Apex class.

 

Any ideas would be welcome.

 

Hi,

 

I have a VisualForce form field which is used to pass an argument to an Apex method. 

 

I want lookup functionality (to the Campaign object) on this particular field. Users select a campaign, then it gets passed to the Apex method.

 

Is that somehow possible? 

We cannot execute searches in sf4twitter anymore. The package is trying to insert a field longer than 255 characters in the sf4twitter__Last_Tweet_Ids__c field.

 

Did anyone encounter the same issue? Is it solveble with a Trigger before upsert?

 

error: STRING_TOO_LONG in Salesforce for Twitter and Facebook (v4)

 

2011-08-18 22:36:43 +0200 | Manual search by keyword finished. Search id:a0pD0000002BGpIIAW, Update failed. First exception on row 0 with id a0pD0000002BGpIIAW; first error: STRING_TOO_LONG, Last Tweet Ids: data value too large: 93270451278712832,93270451278712832,93270512708501505,93270648138383360,93270648138383360,93271094542336001,93271094542336001,98318460739780608,101296822202531841,101952570137915392,101952946392150016,103916366783975424,103766241453420544,101944792103141376 (max length=255): [sf4twitter__Last_Tweet_Ids__c]




Hi, 

 

I'd like to (automatically) attach an extra document to the Quotes in SalesForce. I was first thinking about overriding the Email Quote button with a link. But unfortunately it seems like you can only add one document to your quote using the &doc_id attribute. Was also thinking about making my own VisualForce page, can create all those Task fields the standard button makes, but which pagereference is actually linked to the Task called 'Send an Email'? You get to that page when clicking 'Email Quote'. 

 

Already overriden the 'New Quote' and 'Create PDF' buttons with VisualForce + Apex. I first had the idea that I would add an extra attachment to the Quote object. But when you click 'Email Quote', that attachment doesn't show up. 

 

The attachment was created using the standard Attachment Apex class.

 

Any ideas would be welcome.

 

On the SF Quote Page, I see that I can override Create PDF to show my own VIsualForce page. I can also "RenderAs" a PDF. This works as expected.

 

But how can I show my own VisualForce page in the pdfOverlay that is shown when the user clicks "Create PDF" when there is no override. In this case, a standard template is served up on the "pdfOverlay" window, with default buttons (Save to Quote, Save and Email Quote, and Cancel).

 

I want my Visualforce quote document to appear in that window, using those same buttons.

 

Basically, I want to use my own template via a VIsualforce page, rather than the more restrictive Templates available to us via the standard quote templates. The template layout options just don't seem to permit the coplexity I need. For example, it is not possible (I think) to create multi-page Terms & Conditions, and lengthy paragraph language to develop a longer form quotation to the customer.

 

Is there a simple way to reuse that PDF overlay with my own VIsualForce PDF, including the existing "Save to Quote" (etc.) buttons in the PDF Overlay ?

 

This would save me lots of time.

 

P.S. The SF Quote page's HTML source shows the following, which is why I thought pdfOverlay had some relevance:

 

HTML Snippet From SF Quote Page:

 

 

<input value="Create PDF"  class="btn" title="Create PDF" name="createpdf" onclick="null
 var pdfOverlay = QuotePDFPreview.quotePDFObjs['quotePDFOverlay'];pdfOverlay.dialog.buttonContents = '&lt;input value=\&quot;Save to Quote\&quot;  class=\&quot;btn\&quot; name=\&quot;save\&quot; onclick=\&quot;QuotePDFPreview.getQuotePDFObject(\'quotePDFOverlay\').savePDF(\'0\',\'0\');\&quot; title=\&quot;Save to Quote\&quot; type=\&quot;button\&quot; /&gt;&lt;input value=\&quot;Save and Email Quote\&quot;  class=\&quot;btn\&quot; name=\&quot;saveAndEmail\&quot; onclick=\&quot;QuotePDFPreview.getQuotePDFObject(\'quotePDFOverlay\').savePDF(\'1\');\&quot; title=\&quot;Save and Email Quote\&quot; type=\&quot;button\&quot; /&gt;&lt;input value=\&quot;Cancel\&quot;  class=\&quot;btn\&quot; name=\&quot;cancel\&quot; onclick=\&quot;QuotePDFPreview.getQuotePDFObject(\'quotePDFOverlay\').close();\&quot; title=\&quot;Cancel\&quot; type=\&quot;button\&quot; /&gt;';
pdfOverlay.summlid = '0EHE0000000PCKI';
pdfOverlay.setSavable(true);
pdfOverlay.setContents('/quote/quoteTemplateDataViewer.apexp?id=0Q0E0000000TNLo','/quote/quoteTemplateHeaderData.apexp?id=0Q0E0000000TNLo');
pdfOverlay.display();
" type="button" />

Any advice to get to this solution? 

 

Thanks, Matt

 

Current documents has no example on how to schedule apex jobs every 10 mins. I tried with unix cron job syntax style (like 0,10,20,30,40,50 slots), that doesn't work.

 

Any help would be appreciated.

 

Thanks

  • February 17, 2010
  • Like
  • 0