Force.com Migration Tool : Email Templates - salesforce

I am looking to retrieve all email templates using Force.com ant migration tool. I believe we can not have bulk retrieve for Email Templates, Reports etc.
Is there any way we can retrieve all email templates in one go without specifying each template name? I believe we can some custom implementation using Metadata API, but wondering if someone has already implemented custom ant task for it.
Thanks in advance.

Email Templates, Reports etc. are in folders, so you must provide the containingFolder attribute to the sf:bulkRetrieve task and you'll get back all the items in that folder. For example:
<sf:bulkRetrieve
username="${sf.username}"
password="${sf.password}"
serverurl="${sf.serverurl}"
retrieveTarget="retrieveUnpackaged"
metadataType="EmailTemplate"
containingFolder="SalesTemplates"
/>
To find the folder names themselves, you can query the Folder object and filter on the Type column for the metadata type you are interested in. For example:
SELECT DeveloperName FROM Folder WHERE Type = 'Email'

Have you tried having the following in your mainfest file.? It should retrieve all the Email Templates:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>EmailTemplate</name>
</types>
<version>23.0</version>
</Package>

If you have the folder/ template names, you can deploy individually, just not using wildcards.
(You could probably script out the member list and construct a dynamic .xml build file)
<types>
<members>Simple_Survey</members>
<members>Simple_Survey/Alert_Managers_NPS_Survey_Created</members>
<name>EmailTemplate</name>
</types>

Related

Single-spa-react. This XML file does not appear to have any style information associated with it. The document tree is shown below

I get this error when I refresh the backed up version of the project, on the local version everything is fine. How can I get rid of this error and just refresh the page?
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>G7D7P61SWG95YX28</RequestId>
<HostId>veUekMremSbV+7eCRaNGu6nC8/aIhjPnNejS3mtVwvD8G2sxhmDwyG+Nm49sQrfOmBkdatvw5ZY=</HostId>
</Error>

Show extracted content from tika in Frontend

I work with TYPO3 10.4.18, solr_file_indexer 2.3.1 and tika 6.0.0.
For Tika I have the solr server as host.
The indexing of the pages, extensions and documents works flawlessly.The search index contains the content of the documents.
Now I want to display the search results for the documents like the page result list. But I can't find a variable which contains the extracted content from tika for the frontend and can be used in the document.html file of solr.
Is there any additional configuration needed here?
With help from #swilking I found the simple answer for my question:
In the file document.html of the extension solr write something like
<f:if condition="{document.type} == 'sys_file_metadata'">
<div>{s:document.highlightResult(resultSet:resultSet, document:document,
fieldName:'content')}</div>
</f:if>
to get the file content with the highlight feature.

Drupal - Site transfer. Change absolute URLs in the database?

I have content in drupal (Blocks, Pages etc.) where absolute links have been inserted. I moved the site and the urls in the blocks and pages are still pointing to the old domain.
How can I change this in the database? Which database table do I need to target? I want to do something like:
UPDATE table SET content = REPLACE(content,'www.domain.com/old','www.domain.com/new');
Thanks!
Drupal it self is not using absolute paths (like i.e. WordPress does) so moving "common" Drupal websites doesn't require any intervention like this.
My advice is to always use root relative paths for internal links.
Basically you would have to replace ALL appearances of old domain with new one, so it would be best to export your database to sql file, do search/replace on that sql file and then import changed dump file to new domain database. Maybe clear all the caches before database export to reduce database size...
Backup your database first!
Install Adminer script and search whole database for previous (old) domain name. Or build SQL-query to search all tables if you like command line interface
See How to search and replace all instances of a string within a database? to know how to replace string in whole database.
Making this change to the database may not be the best practise, why don't you instead try using the base html tag within the head tag in the .html template file:
<head>
<base href="http://www.domain.com/new"
</head>
Refer to for more information on this tag: http://www.w3schools.com/tags/tag_base.asp

Adding .xml file into a dnn page

i have a default.aspx page that contains details from link.xml file.The data for the default.aspx page comes from a links.xml file. I want to migrate the default.aspx page to dnn. That is i need to include the data of the .xml file to the dnn page. I tried uploading the .xml file to the file manager and then importing the content to the module but it didn't work.
could you please help me with any module that helps me add the data of the xml to it.or any other way where i can add the data from the xml file.
You can do a couple of things to use XML in DNN.
1) Download/install the XML module, then point that module to your XML file.
2) Create a custom module that reads from the XML file.
I personally would go with #2 because building modules can be very easy and great development practice to learn the DNN platform.

Use XSD file in XBAP application

In an existing Winforms application, I receive XML formatted data from a database query, and use a local XSD file to parse the resulting XML element.
Now, I'd like to achieve the same from within a WPF XBAP (application in browser), so no local XSD file is accessible.
Obviously I can load the XSD file onto my web server, but how do I tell WPF to use this schema file for parsing the XML chunk?
Use XmlnsDefinition and XmlnsPrefix assemblies to map the XSD file to page element or XML root element.

Resources