DocuSign Branding Email Merge Field - docusignapi

I have a logo (210 x 73 px) which I uploaded to the primary position under Branding -> Resources in the DocuSign Branding page primary logo position at the DocuSign site.
I have included the logo inside the Email Resource file which makes up my email template, said html:
<table cellpadding="0" cellspacing="0" border="0" align="center" width="520" class="fullWidthWithGapMobile">
<tr>
<td>
<a href="http://www.example.com/">
<img src="[[Data:PresetPath]][[BrandString:LogoPath]]" alt="blah blah blah" />
</a>
</td>
</tr>
Unfortunately the image is not being displayed, but upon inspection with Chrome Developer Tools it appears as though the image path is being set by the merge field [[Data:PresetPath]][[BrandString:LogoPath]] because the html img src is "https://www.docusign.net/Member/Image.aspx?i=logo&l=e0297835-51a2-4148-8d85-b57713876c88".
Furthermore, when I preview the http headers for the image it's getting an HTTP response code of 200. The strange thing is though that when I try to view the response for the image asset inside Developer Tools, there is no response data available.
Additionally, the output of other merge fields appears to be not working, e.g.
style="color:[[BrandString:DialogHeaderColor]];"
The data for [[BrandString:DialogHeaderColor]] is available in the brand resource file which I have downloaded and checked. A sample extract of the Branding XML is here for your convenience:
<Brand>
<BrandId>a81a087c-4R3d-4d90-9zpf-c8399a555e46</BrandId>
<BrandName>Brand X</BrandName>
<CompanyName>Company X</CompanyName>
<BackgroundColor>#00B0B9</BackgroundColor>
<BackgroundTextColor>#333333</BackgroundTextColor>
<DialogHeaderColor>#008C95</DialogHeaderColor>
...
Any assistance that anybody can provide would be greatly appreciated, thank you in advance.
Here's the screen capture of the uploaded logos in the docusign web interface.

Related

Export Excel in VF Page - Image not getting displayed while using dynamic image URL

I am exporting a VF page as Excel document. While I export excel file, Image cell contains blank data. Below is my VF page code. It is working fine if I am using static url (<img alt="Image" src="https://myorgurl/resource/DefaultProfileImage" />) instead of dynamic Image url.
<apex:page controller="Users_Profile" contentType="application/vnd.ms-excel#Users.xls">
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
<thead>
<tr>
<th>Profile Image</th>
<th>Name</th>
<th>City</th>
<th>State</th>
</tr>
</thead>
<tbody>
<apex:repeat value="{!lstUsers}" var="user">
<tr>
<td>
<image alt="Image" src="{!BaseUrl}{!URLFOR($Resource.DefaultProfileImage)}" />
</td>
<td>{!user.Name}</td>
<td>{!user.City__c}</td>
<td>{!user.State__c}</td>
</tr>
</apex:repeat>
</tbody>
</table>
I have tried XML structure instead of HTML tags in VF page to get this resolved but it is not working.
Static resources display OK only if the "browser" has successfully logged in to Salesforce. I mean think about it, there's nothing globally unique in a link like https://eu1.salesforce.com/resources/DefaultProfileImage. Excel fails to download the image. Go to your image's url in private browsing (incognito mode), it will not display OK until you log in. This is similar to email templates that use resources or VF pages generating PDFs with images.
You need to upload the image to Documents (switch to SF Classic UI), tick "externally available image" checkbox and the link that's generated will look like https://instance.content.force.com/servlet/servlet.ImageServer?id=015...&oid=00D.... This is globally unique enough, it contains your org id and document record's id.
You can also upload the image somewhere else (Heroku?), create Site in Salesforce or Community and reference it as a public url like that... Basically anything to make the image available without logging in.
I Agree with Eyescream's answer. In addition to it, you can create 'Externally Available Image' document and upload your image in it. Now you can access your image without login into salesforce.
Use following steps to create a document.
Go to Documents tab in salesforce
Click on 'New Document'
Fill Document Name and other details
Select checkbox 'Externally Available Image'
Upload Image and Click on Save button
You will get Image preview and you can use that image url outside salesforce.

Issue with GMail - Wrapping up Html email with unwanted PRE tag

I am trying to send HTML email to GMail.
But GMail is internally wrapping up Html of my email with pre tag.
For ex: my email contains below html
<html>
<body>
<table>
<tr>
<td> TEST 1 </td>
<tr>
</table>
<table>
<tr>
<td> TEST 2 </td>
<tr>
</table>
</body>
But Gmail translates this html in different way as shown below
<pre><table>
<tr>
<td> TEST 1 </td>
<tr>
</table>
<table>
<tr>
<td> TEST 2 </td>
<tr>
</table></pre>
Can anyone help me, how does this PRE tag gets added in GMail?
The problem with this pre tag is that it has got some styles coming up from gmail that breaks the look and feel of my email. Below is the CSS.
.gs pre {
white-space: pre-wrap;
}
Also, Is there a way to override the above CSS to change the value of 'white-space' to 'initial' instead of 'pre-wrap'? If this is possible, my issue will be resolved.
Any help on my above doubts is really appreciated.
#RDE, You are absolutely right. Gmail does not wraps PRE tag.
I just figured out the problem and the solution too.
Issue
I was using Adobe CQ(content management tool) to send emails. While sending emails my entire HTML was wrapping up with PRE tag. This was most probably due to Adobe CQ Mail API that sends email. Issue occurred for me in all email clients.
Solution
I have wrapped PRE tag outside entire html with style "white-space:initial". When CQ generates email, I get two pre tags now, one(outer PRE tag) from CQ and another one(Inner PRE tag) which i used to wrap my HTML. The inner PRE tag took the priority over outer one and overrides the styles which were causing the issue. Adding the code for better clarity
<pre style="white-space:initial">
Your hTML that goes through CQ
</pre>...
Now once you send email through CQ your final html will be like this
<pre>
<pre style="white-space:initial">
Your hTML that goes through CQ
</pre>
</pre>

How to get metadata on another jsp?

I have a custom code for DL Portlet. The content uploaded of in DL folder displayed like this in below image. I want to display the metadata of each content on click of file name on another jsp.
Code used is:
<tr ng-repeat="f in files" ng-hide="f.deleted" class="animate-hide">
<td><a title="{{f.name}}" ng-click="viewFile(f.id);">{{f.name}}</a></td>
<td>{{f.size}}</td>
<td>{{f.version}}</td>
<td>{{f.permission}}</td>
<td>{{f.lastChange}}</td>
<td>{{f.downloadCount}}</td>
<td ng-switch on="f.actions.length > 0">
Any help would be helpful.
Use hook and customize..
when you onclick simple open jsp page in AUI dialog..
Have a look into following link for AUI Dialogs in Liferat
working with AUI Dialog in Liferay

Verify Text with BR tags and text not always in the same order

My dilemma:-
I have 4 stored registrations from a results list ${VEH_REG_1}, ${VEH_REG_2}, ${VEH_REG_3} & ${VEH_REG_4}.
I am adding these registrations to a list via a UI. So you select the four vehicles and click a button, a popup then appears letting you know if you are successful or not in adding the vehicles to the list. The popup lists the registrations in a "P" tag with "BR" tag between the registrations, so each registration is on a new line.
My problem is, the stored registrations I have are not always displayed in the logical order I saved them, so verifying the text is not as straight forward as it would normally be.
I have tried verifytext with direct xpaths. I have tried verifytextpresent (but as the results list is still present, it finds the registrations even if they are not in my list) and I have tried to use the gotoif command, but I still have the same problem when it comes to the "BR" tags.
<div class="mbtn">
<div style="height: 120px; overflow: auto">
<span id="ctl00_phmcp_phmc_lblOfflineMarketingResult">
The selected not-pending cars have been added to the offline marketing list.
<br>
The following vehicles are not in the appropriate status:
<p>
LJ57OOB
<br>
RF56RZC
<br>
LJ58PJY
</p>
<p>
</span>
</div>
As I do not have 10 reputation to display images yet (Grrr!!!!) I can email you the image if it helps to understand what I am trying to achieve.
Any help is appreciated.
Thanks Mark
verify them one at a time with globs so you don't need to verify the order.
<tr>
<td>verifyText</td>
<td>//span[#id="ctl00_phmcp_phmc_lblOfflineMarketingResult"]</td>
<td>*LJ57OOB*</td>
</tr>
<tr>
<td>verifyText</td>
<td>//span[#id="ctl00_phmcp_phmc_lblOfflineMarketingResult"]</td>
<td>*LJ58PJY*</td>
</tr>

How to retrieve attachment file name in display form of custom list form with SharePoint Designer

I have created custom list and modified display form of list for display attached image of list.
I have place HTML image control on display form but I can’t get attachment URL path which I can assign to Image control. I tried to some level hardcode like:
“http://Server Name/SiteName/Lists/ListName/Attachments/{#ID}/???”
I can get ID value so it can be work but the last thing file name, I am not able to get the attached file name.
Do I need to write code to get path? If yes then which event I have to inherited
This solution requires undocumented magic.
...puts robe and wizard hat
Inside your table with the #Title and such:
<tr>
<td width="190px" valign="top" class="ms-formlabel">
<H3 class="ms-standardheader">
<nobr>Attachments</nobr>
</H3>
</td>
<td width="400px" valign="top" class="ms-formbody">
<SharePoint:FormField runat="server" id="attachmentsField" ControlMode="Display" FieldName="Attachments" />
</td>
</tr>
You can change the attribute ControlMode to "Edit", it shows the Delete option.

Resources