• Akshay More 11
  • NEWBIE
  • 20 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 4
    Replies
Hi ,

I want to configure NLP for order status intent
so that the bot better recognizes phrases related to order status and is more conversational. Can anyone refer me any app or any url where I will find the sample Intent sets to import.

Thanks,
Akshay 
Hello All,

Is it possible to integrate Salesforce with Mailchimps without Lead Object.
Instead of Lead object I want to used Contact Object directly.

Thanks in Advance,
Akshay More
Hello,

I'm trying to bind inputText from visualfroce page to my wrapper class. I have multiple products selected by one wrapper, and on second vf i want to take some inputText .After that i want to bind those inputText with selected products. and then on button click Im generating pdf for the same. But the can not able to bind the input string properly. 

can anyone can share some sample logic for this? 
Hiii All,

  Unable to see the image from richtext area ,for non admin user,who has read access to same object. The rich text area is visible with only imageName.extension(i.e. image.png) and the image icon but the image is not visible properly.
for admin:-
For admin user who has uploaded image

for non admin user:-
non admin user

Thanks in advanced,
Akshay More
Hello,

   I have one richtext area field on object which consist of image,and i want to export records along with the image(richtext area field). Is this possible in sfdc??

Thanks in advanced ,
Akshay More
Hello , I'm trying to send visualforce page content as an  email attachment in pdf format ,but when I download the attachment from mail and try to open it it gives me error like corrupted file or unsupported file

VF Page : -
 
 <apex:page standardController="VS_Quote__c" extensions="Quoteaspdf,sendQEmail,pmsg"  lightningStylesheets="true" showHeader="false" sidebar="false">
<div style="margin-left:240px;margin-right:240px;">
    <head>
        <style>
            body { font-family: 'Arial Unicode MS'; }
        </style>
    </head>
    <apex:form >
        <table style="width:100%;">
            <tbody>
                <tr>
                    <td style="width:256px;">
                        <img style="float: left;width:90px;height:30px;" src="https://c.ap4.visual.force.com/resource/1533719597000/vyomlogo" alt="" width="227" height="200" />
                       
                    </td>
                    <td style="text-align:right;">
                         <p style="font-size:10px;"><br/>Phone:7276852020<br/>Website: www.Vyomlabs.com</p>    
                    </td>
               </tr>
            </tbody>
        </table>
        
            
       
        <apex:pageBlock  >
            <div style="margin-left:450px;margin-top:40px;font-size:14px;">
                   <table>
                          <tr>
                            <th>Created Date</th>
                            <td>&nbsp;<apex:outputText value="{0,date,MM'/'dd'/'yyyy}"><apex:param value="{!VS_Quote__c.Created_Date__c}" /> </apex:outputText></td>
                          </tr>
                          <tr>
                            <th>Expiration Date</th>
                            <td>&nbsp;<apex:outputText value="{0,date,MM'/'dd'/'yyyy}"><apex:param value="{!VS_Quote__c.Expiration_Date__c}" /> </apex:outputText></td>
                          </tr>
                          <tr>
                            <th>Quote Number</th>
                            <td>&nbsp;{!VS_Quote__c.Quote_Number__c}</td>
                          </tr>
                </table>
            </div>
            <br/><br/>
            <div style="margin-left:450px;font-size:14px;">
                 <table>
                          <tr>
                            <th>Contact Name</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Contact_Name__c}</td>
                          </tr>
                          <tr>
                            <th>Phone</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Phone__c}</td>
                          </tr>
                          <tr>
                            <th>Email</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Email__c}</td>
                          </tr>
                </table>
            </div>
             <div style="margin-left:80px;margin-top:-58px;font-size:14px;">
                   <table>
                          <tr>
                            <th>Prepared By</th>
                            <td></td>
                          </tr>
                          <tr>
                            <th>Email</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Email__c}</td>
                          </tr>
                          
                </table>
            </div>
            <div style="margin-left:80px;margin-top:26px;font-size:14px;">
                   <table>
                          <tr>
                            <th>Bill To Name</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Bill_To_Name__c}</td>
                          </tr>
                          <tr>
                            <th>Bill To</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Bill_To_Street__c} , {!VS_Quote__c.Bill_To_City__c}</td>
                          </tr>
                          
                </table>
            </div>
            <div style="margin-left:450px;margin-top:-47px;font-size:14px;">
                   <table>
                          <tr>
                            <th>Ship To Name</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Ship_To_Name__c}</td>
                          </tr>
                </table>
            </div>
            <div style="margin-top:60px;">
                <table style="width:80%;margin-left:80px;">
                    <tr style="text-align:right;color:white;font-size:10pt;text-color:white;background-color:#5D6D7E;">
                        <th style="text-align:left;">Product</th>
                        <th>List Price</th>
                        <th>Sales Price</th>
                        <th>Quantity</th>
                        <th>Total Price</th>
                    </tr>
                     
                    <apex:repeat value="{!opportunityProd}" var="a">
                        <tr>
                            <td style="text-align:left;" >{!a.Name}</td>
                            <td style="text-align:center;" >-</td>
                            <td style="text-align:center;">{!a.Sales_Price__c}</td>
                            <td style="text-align:center;">{!a.Quantity__c}</td>
                            <td style="text-align:right;">{!a.Total_Amount__c}</td>
                        </tr>
                     
                     </apex:repeat>
                </table>    
            </div>
            
            
            <apex:pageBlockButtons style="align:center;">
                
                <apex:commandButton action="{!send}" value="Email Quote" onclick="OpenPage('blog'); return false;"/>
                <apex:commandButton value="Save As PDF" onclick="OpenPage('google'); return false;"/>
                
            </apex:pageBlockButtons>    
        </apex:pageBlock>
    </apex:form>
</div>    
</apex:page>


Controller Extension : -

public class sendQEmail
{
    public String subject{get;set;}
    public String body{get;set;}
    String QuoteID;
    public List <String> ToAddresses{get;set;}
    public sendQEmail(ApexPages.StandardController cltr)
    {
        ToAddresses = new List <String>();
        QuoteID=cltr.getRecord().id;
        ToAddresses.add('**********@gmail.com');
    }
    public PageReference send()
    {    
        
        Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();
        PageReference pdf =  Page.createquotepdf;
        pdf.getParameters().put('id',QuoteID);
        pdf.setRedirect(true);
        Blob b = pdf.getContent();
        Messaging.EmailFileAttachment efa = new Messaging.EmailFileAttachment();
        efa.setContentType('application/pdf');
        efa.setFileName('Quote.pdf');
        efa.setBody(b);
              
        
        email.setSubject('Quote PDF');
        email.setToAddresses(ToAddresses);
        email.setSaveAsActivity(true);
        
        email.setPlainTextBody('Please find the attachment containing the pdf of Quote');
        email.setFileAttachments(new Messaging.EmailFileAttachment[] {efa});
        Messaging.SendEmailResult [] r = Messaging.sendEmail(new Messaging.SingleEmailMessage[] {email});  
        return null;
    }
}


User-added image

Thanks In advanced
Akshay
Hi ,

I want to configure NLP for order status intent
so that the bot better recognizes phrases related to order status and is more conversational. Can anyone refer me any app or any url where I will find the sample Intent sets to import.

Thanks,
Akshay 
Hello,

   I have one richtext area field on object which consist of image,and i want to export records along with the image(richtext area field). Is this possible in sfdc??

Thanks in advanced ,
Akshay More
Hello , I'm trying to send visualforce page content as an  email attachment in pdf format ,but when I download the attachment from mail and try to open it it gives me error like corrupted file or unsupported file

VF Page : -
 
 <apex:page standardController="VS_Quote__c" extensions="Quoteaspdf,sendQEmail,pmsg"  lightningStylesheets="true" showHeader="false" sidebar="false">
<div style="margin-left:240px;margin-right:240px;">
    <head>
        <style>
            body { font-family: 'Arial Unicode MS'; }
        </style>
    </head>
    <apex:form >
        <table style="width:100%;">
            <tbody>
                <tr>
                    <td style="width:256px;">
                        <img style="float: left;width:90px;height:30px;" src="https://c.ap4.visual.force.com/resource/1533719597000/vyomlogo" alt="" width="227" height="200" />
                       
                    </td>
                    <td style="text-align:right;">
                         <p style="font-size:10px;"><br/>Phone:7276852020<br/>Website: www.Vyomlabs.com</p>    
                    </td>
               </tr>
            </tbody>
        </table>
        
            
       
        <apex:pageBlock  >
            <div style="margin-left:450px;margin-top:40px;font-size:14px;">
                   <table>
                          <tr>
                            <th>Created Date</th>
                            <td>&nbsp;<apex:outputText value="{0,date,MM'/'dd'/'yyyy}"><apex:param value="{!VS_Quote__c.Created_Date__c}" /> </apex:outputText></td>
                          </tr>
                          <tr>
                            <th>Expiration Date</th>
                            <td>&nbsp;<apex:outputText value="{0,date,MM'/'dd'/'yyyy}"><apex:param value="{!VS_Quote__c.Expiration_Date__c}" /> </apex:outputText></td>
                          </tr>
                          <tr>
                            <th>Quote Number</th>
                            <td>&nbsp;{!VS_Quote__c.Quote_Number__c}</td>
                          </tr>
                </table>
            </div>
            <br/><br/>
            <div style="margin-left:450px;font-size:14px;">
                 <table>
                          <tr>
                            <th>Contact Name</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Contact_Name__c}</td>
                          </tr>
                          <tr>
                            <th>Phone</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Phone__c}</td>
                          </tr>
                          <tr>
                            <th>Email</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Email__c}</td>
                          </tr>
                </table>
            </div>
             <div style="margin-left:80px;margin-top:-58px;font-size:14px;">
                   <table>
                          <tr>
                            <th>Prepared By</th>
                            <td></td>
                          </tr>
                          <tr>
                            <th>Email</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Email__c}</td>
                          </tr>
                          
                </table>
            </div>
            <div style="margin-left:80px;margin-top:26px;font-size:14px;">
                   <table>
                          <tr>
                            <th>Bill To Name</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Bill_To_Name__c}</td>
                          </tr>
                          <tr>
                            <th>Bill To</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Bill_To_Street__c} , {!VS_Quote__c.Bill_To_City__c}</td>
                          </tr>
                          
                </table>
            </div>
            <div style="margin-left:450px;margin-top:-47px;font-size:14px;">
                   <table>
                          <tr>
                            <th>Ship To Name</th>
                            <td>&nbsp;&nbsp;{!VS_Quote__c.Ship_To_Name__c}</td>
                          </tr>
                </table>
            </div>
            <div style="margin-top:60px;">
                <table style="width:80%;margin-left:80px;">
                    <tr style="text-align:right;color:white;font-size:10pt;text-color:white;background-color:#5D6D7E;">
                        <th style="text-align:left;">Product</th>
                        <th>List Price</th>
                        <th>Sales Price</th>
                        <th>Quantity</th>
                        <th>Total Price</th>
                    </tr>
                     
                    <apex:repeat value="{!opportunityProd}" var="a">
                        <tr>
                            <td style="text-align:left;" >{!a.Name}</td>
                            <td style="text-align:center;" >-</td>
                            <td style="text-align:center;">{!a.Sales_Price__c}</td>
                            <td style="text-align:center;">{!a.Quantity__c}</td>
                            <td style="text-align:right;">{!a.Total_Amount__c}</td>
                        </tr>
                     
                     </apex:repeat>
                </table>    
            </div>
            
            
            <apex:pageBlockButtons style="align:center;">
                
                <apex:commandButton action="{!send}" value="Email Quote" onclick="OpenPage('blog'); return false;"/>
                <apex:commandButton value="Save As PDF" onclick="OpenPage('google'); return false;"/>
                
            </apex:pageBlockButtons>    
        </apex:pageBlock>
    </apex:form>
</div>    
</apex:page>


Controller Extension : -

public class sendQEmail
{
    public String subject{get;set;}
    public String body{get;set;}
    String QuoteID;
    public List <String> ToAddresses{get;set;}
    public sendQEmail(ApexPages.StandardController cltr)
    {
        ToAddresses = new List <String>();
        QuoteID=cltr.getRecord().id;
        ToAddresses.add('**********@gmail.com');
    }
    public PageReference send()
    {    
        
        Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();
        PageReference pdf =  Page.createquotepdf;
        pdf.getParameters().put('id',QuoteID);
        pdf.setRedirect(true);
        Blob b = pdf.getContent();
        Messaging.EmailFileAttachment efa = new Messaging.EmailFileAttachment();
        efa.setContentType('application/pdf');
        efa.setFileName('Quote.pdf');
        efa.setBody(b);
              
        
        email.setSubject('Quote PDF');
        email.setToAddresses(ToAddresses);
        email.setSaveAsActivity(true);
        
        email.setPlainTextBody('Please find the attachment containing the pdf of Quote');
        email.setFileAttachments(new Messaging.EmailFileAttachment[] {efa});
        Messaging.SendEmailResult [] r = Messaging.sendEmail(new Messaging.SingleEmailMessage[] {email});  
        return null;
    }
}


User-added image

Thanks In advanced
Akshay