• Harshala Shewale (Salesforce)
  • NEWBIE
  • 35 Points
  • Member since 2012

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

Hi,

 

I am developing a Send Email Module to add some more functionality. I have a Rich text area to show selected template body.

 

<apex:inputtextarea richtext="true" value="{!body}" id="body"/>  

{!body} is string property.  Suppose Template is as below :

 

Dear {!Contact.FirstName}, I really enjoyed speaking with you today. I think that {!Organization.Name} has a lot to offer {!Account.Name} and I look forward to our next meeting.Regards, {!User.FirstName}

 When I edit template body to :

Dear {!Contact.FirstName}, I really enjoyed speaking with you today. I think that {!Organization.Name} has a lot to offer {!Account.Name} and I look forward to our next meeting.

Waiting for you reply.

Regards, {!User.FirstName}

 

 then in controller I get template with HTML tags

Dear {!Contact.FirstName}, I really enjoyed speaking with you today. I think that {!Organization.Name} has a lot to offer {!Account.Name} and I look forward to our next meeting. 
<br/>
Waiting for you reply.
<br/>
Regards, {!User.FirstName}

 Can anyone help me to resolve this? Trying hard to avoid html tags but no success :(

 

 



 

 

  • September 06, 2012
  • Like
  • 0

Hi,

 

I am developing a Send Email Module to add some more functionality. I have a Rich text area to show selected template body.

 

<apex:inputtextarea richtext="true" value="{!body}" id="body"/>  

{!body} is string property.  Suppose Template is as below :

 

Dear {!Contact.FirstName}, I really enjoyed speaking with you today. I think that {!Organization.Name} has a lot to offer {!Account.Name} and I look forward to our next meeting.Regards, {!User.FirstName}

 When I edit template body to :

Dear {!Contact.FirstName}, I really enjoyed speaking with you today. I think that {!Organization.Name} has a lot to offer {!Account.Name} and I look forward to our next meeting.

Waiting for you reply.

Regards, {!User.FirstName}

 

 then in controller I get template with HTML tags

Dear {!Contact.FirstName}, I really enjoyed speaking with you today. I think that {!Organization.Name} has a lot to offer {!Account.Name} and I look forward to our next meeting. 
<br/>
Waiting for you reply.
<br/>
Regards, {!User.FirstName}

 Can anyone help me to resolve this? Trying hard to avoid html tags but no success :(

 

 



 

 

  • September 06, 2012
  • Like
  • 0

Hi, please respond if any one came across this functionality,

 

we happened to disable, enable the create pdf button on the quote based on a status field. How to proceed with this.

 

I found 2 option to override the standard with a visual force page or using a custom button.

 

In both the case i ran out of option on to fins the quote template id and use it in the creation of the pdf. 

 

Any ideas on this

  • April 05, 2012
  • Like
  • 0

Hi Guys,

 

I'm working on integration with some web service that requires WSSE authentication.

WSSE Authentication requires special SOAP Header that can look like below:

 

<env:Header>

            <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2003/06/secext">

                        <wsse:UsernameToken>

                                                <wsse:Username>test</wsse:Username>

                                                <wsse:Password>123</wsse:Password>

                        </wsse:UsernameToken>

            </wsse:Security>

</env:Header>

 

So, I decided to use WebServiceCallout class to invoke that web service methods. I also found a way how to add SOAP header but I spent a lot of time reading documentation and trying different things to figure out how to add "wsse" prefix for the lements in this header without any success...

 

The maximum I was able to produce is:

 

<env:Header>

     <n1:Security xmlns:n1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

             <usernameToken>

                   <username>test</username>

                   <password>123</password>

             </usernameToken>

      </n1:Security>

</env:Header>

 

Do anybody know about any workaround to specify "wsse" prefix?

I really don't want to go with Http classes solution yet hoping that there could be some solution I don't know about. Please advise.

 

Thanks in advance!

 

  • July 06, 2011
  • Like
  • 0

 

I have a Web Service that is expecting it as a part of SOAP header. How do I send it?

 

 


<soapenv:Header>

<wsse:Security

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-

secext-1.0.xsd">

<wsse:UsernameToken>

<wsse:Username>username</wsse:Username>

<wsse:Password>password</wsse:Password>

</wsse:UsernameToken>

</wsse:Security>

</soapenv:Header>
<soapenv:Body>
<actual callout method here>
</soapenv:Body>

 

 

The only documentation I see is for inputHttpHeaders_x which can send http header and can send username password as part of 'Authorization' Header.

 

 

 

 

 

Message Edited by GoForceGo on 07-14-2009 05:03 PM
Message Edited by GoForceGo on 07-14-2009 05:03 PM
Message Edited by GoForceGo on 07-14-2009 05:05 PM