Simple Mail Merge from Apex

Hi All,
I have a simple Report in Apex 3.0 that displays 10 people in the format Firstname Surname. I have linked this Report to BI Publisher and my RTF Template is setup as: -
Dear Firstname Surname
The Report opens OK in either PDF or Word format, however I only get 1 row output (the first row in the table). What do I need to add to the RTF Template to print this letter 1 page per row (i.e. 1 page per person)? I've tried using for-each without any success? So ultimately I should have 10 pages, 1 for each person.
Thanks,
Mike

Hi Tim,
Thanks for the response. I'm obviously missing something simple. An extract from my XML is: -
<ROWSET>
<ROW>
<FIRSTNAME>Lucy</FIRSTNAME>
<SURNAME>Turnbull</SURNAME>
</ROW>
<ROW>
<FIRSTNAME>Steven</FIRSTNAME>
<SURNAME>Bradshaw</SURNAME>
</ROW>
... etc
My RTF template looks like : -
<?for-each:ROWSET?>
Dear FIRSTNAME SURNAME
<?end for-each?>
This displays a blank page. Without the for-each tags, I just get 1 row rendered. What am I missing?
Thanks,
Mike

Similar Messages

  • How do I do a mail merge from contacts to Pages?

    The old version of Pages allowed a simple mail mail merge with Contacts.  The "What's New in Pages" document says you can still mail merge from Contacts, but I'll be hanged if I can figure out how.  Will someone please tell me how to mail merge from Contacts to Pages?  Otherwise, I've got to learn a new word processor.

    There is no built-in mail merge feature with Pages v5. Apple only supports mail merge if you are willing to either create your own AppleScript application or use pre-written AppleScript solutions. Examples are here and here. Pages community discussions about these are here by the developer.
    If you are unwilling to do engage in AppleScript, then fall back and use Pages '09 v4.3.

  • Mail Merge from Microsoft Word 2010 to "Individual" PDF documents.

    Hi Adobe brothers and sisters,
    I need help with this one.
    I'm Mail Merging over 300 letters and each letter has seven pages. What I'm currently doing is mail merging from Excel to Word then printing it into a single PDF document. Once printed, I select each seven pages and then reprinting in PDF with the name its intended for? This is very time consuming and hoping there is an easier way.
    Is there a way to save each individual PDF documents (each letter) and have them labeled by a specific name listed on the letter intended for (eg: surname) without going through this lengthy process.
    Regards,

    I've developed a tool that will allow you to extract each group of 7 pages
    into a single file with just a few clicks. See:
    http://try67.blogspot.com/2012/01/acrobat-extract-groups-of-pages.html
    However, the file names of the generated files will be generic. If you want
    to use some text from the pages themselves in the file names, that might be
    possible, but would require a more complex script. Contact me personally to
    discuss it further.

  • Mail Merging from Numbers

    I'm trying to Mail Merge from Numbers into Pages to generate mailing envelopes. I've built the columns in my Numbers spreadsheet to correspond to individual merge fields (street, city, state, zip), and I can build my merge template in Pages. When I then try to merge the data from my Numbers document, all that gets generated is a copy of the first row. That's it. Not much of a merge... has anyone else seen this? Am I not merging properly?

    Report the bug and try using Address Book instead for the merge this seems to be a more solid way of doing the job.
    See my (very long post) http://discussions.apple.com/thread.jspa?threadID=1854549&tstart=0
    Personally I am a firm believer in *Prepaid Window Face Envelopes*.
    I imagine you want to personally address the correspondence, which means the name and address are already at the head of your letter.
    Position them so they appear correctly in the prepaid window faced envelope and there is no second pass printing, no error matching letters to envelopes, no sticking on of labels or stamps and less waste to be thrown away at the other end.
    More time to resolve other more pressing problems on my Macs.

  • HT2500 how do e mail merge from mail

    How can i do e mail merge from my mac

    Something is not quite right here. A MacBook Air does not run any version of IOS, and would you per chance be using OS X 10.10.1 Yosemite instead?
    In Excel, export your Christmas addresses as a comma separated value (CSV) file.
    In OS X Contacts, make a new contact group — let's call it Christmas 2014. Click on this group to make it current. Then from Contacts > File > Import, select your CSV file from the import file chooser. Your Christmas list of contacts are now generated within the new contact group: Christmas 2014. This may be an imperfect process, and may require you to clean up some of these contacts.
    In Contacts > File > Print, you can pick your Avery address label sheet stock number, pick the Christmas 2014 distribution, sort these contacts alphabetically, and print up your labels. Your labels will appear in the large display box in this print dialog. I am excluding this in the screen capture.

  • How du you mail merge from macbook???

    how do you mail merge from macbook???

    Apple has removed merging from Pages 5 along with over 100 other features:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=b770b101a064d d0e553249a97fb7cddd&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder, use that.
    Peter

  • Having problems using mail merge from address book to word for labels

    I've downloaded and opened avery labels to word and would now like to merge an address book from my mac.
    When I get to the Mail Merge Manager and go to 'get list', my address book is not accessible.
    I'm sure there's a simple way to do this but have not been successful googling or using the help options on both
    pages and address book.
    Thanks in advance for any help you can provide.

    Hi shaun
    Looks like Pages '08 works the same as the previous version. You can't get data from multiple cards in one document. Try using Address Book's native label printing feature.
    Good luck!

  • Mail Merge from Numbers picks up wrong cell

    I have a Numbers document with several tables (each in a different Sheet).  The document was created by exporting data from ScrumWorks Pro into an excel document and than opened in Numbers.  The data I use in the mail merge is in one of the tables.  To prep the table for the merge, I set the top row of the one table to be a header row and save as a numbers document.  Some of the columns in the table reference other tables in the document (for example = PBI::Table 1::C2).
    In Pages, I use three of the columns as merge fields (column B - "Task Title", column F - "Original Estimates (hours), & column I - "PBI Title").  Column I is the one with references to the different table in the same document.
    When I do the mail merge, the first page correctly gets the first two column, but not the third.  The second page of the mail merge picks up column E instead of column B, column I instead of column F, and again not the third merge field.  The third page of the mail merge picks up column N instead of column B, column H instead of column F, and again not the third merge field ... etc.
    I am guessing that it wants/needs further modifications to the Numbers document to prepare it for the merge, but I am not sure what.  Anyone have any ideas?

    Not surprised at all.
    You wrote that the column F contains hours values.
    The truth is that it contain date_time values displaying only the time component.
    The Mail merge hate this kind of data.
    There is a simple workaround. Insert a new column just after column F.
    In the new cell G2, insert the formula =""&F2
    Apply Fill Down
    In the Pages document, repose the field supposed to extract values from column F by one defined to extract from he new column G.
    I'm quite sure that the merge feature will behave as you wish.
    Yvan KOENIG (VALLAURIS, France) samedi 28 mai 2011 21:31:37
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Problems with pages and mail merging from Address Book

    hey guys. I have just created an invitation using one of the templates in Pages. this template is for four postcard size invites on one sheet of A4. i want to merge addresses from my address book. i can do the merge except that rather than four different contacts on each page i end up with four of the same on each page before it moves on the next contact on the next page. what i want to do is for it to merge one address per postcard. in Word i would put 'next' as the last field in the merge fields but i cant find a similar command in Pages. please can some advice?

    I don't use Address Book for mail merging, but I tested this on a four page document and it worked for that so maybe it will work for your postcards. First, do your merge with full size pages and one address per page. Then in the print menu select Layout (drop down from Copies and Pages) and set it for 4 per Page (any direction you wish). That should print four different addresses on one sheet.
    Walt

  • Mail merge from Word to Excel locks the excel document

    Previously, a friend of mine would run his business like this:
    Open a client database (excel file), open N number of word docs that were mail merge docs to the excel file.  He could then make changes to the excel file and see those changes reflected in real time in the opened word mail merge documents.  He
    could also save the excel document while the word docs were open without problem.
    Now, changes to excel are not shown in word, and saving the excel doc while the word mail merge documents are open produces a sharing violation (winword has a handle on the excel file).
    I've reproduced his problems.  We are both using Office 2010, and Windows 7.
    I've tested turning off indexing on the files, and also tried disabling my anti virus. 
    If I save the excel file as a 97-2003 file (.xls), then I don't have most of these issues.
    Is there anyway to avoid the file lock when using the excel document as a 2010 xlsx?  Why would it work fine if I connect to an old document, but not work with the 2010 version?

    I have a similar problem, which might be related. I use an Excel 2010 spreadsheet (.xlsx) as a data source to mail merge with document templates (.dotx) in Word 2010. I can save changes to the Excel spreadsheet without any problems until open a Word template
    and try to use the Excel spreadsheet as the data source (Mailings -> Select Recipients -> Using Existing List). Two problems occur when I run that merge. First, any recent changes to the spreadsheet don't appear in the document templates. Second, Excel
    throws error messages when I try to save the spreadsheet. Specifically:
    1. Excel tells me that "Your changes could not be saved to '[FILENAME].xlsx' because of a sharing violation. Try saving to a different file."
    2. When I click OK, it tries to save the spreadsheet to a randomly-named file without an extension, and tells me "The file you are trying to open, '53F11100' (or some other seemingly-random file name) is in a different format than specified by the file extension.
    Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?" Excel gives me a yes/no option, either requires me to resave the file under a different name.
    At this point, I can only save the spreadsheet under a different file name unless I close out of MS Office 2010 entirely, make a duplicate of the spreadsheet using Windows, and begin using the new copy instead of the old. I'm using Windows Vista SP2, and don't
    recall any specific action on my part prompting this change, but it began happening in the last few weeks. Any guidance would be a huge help.
    Thanks in advance,
    Prescott

  • Mail Merge From Within Professional 8

    Hi,
      Is there any function in Professional 8 similar to Word's Mail Merge?  I work for a company that has a need to "stamp" unique copy numbers on certain documents.  Here's what we presently do:
    We have a Word file of a testing procedure (we have a number of different testing procedures), and we receive a request for x number of controlled copies so that the analysts in the labs can conduct testing. An example of the number for the first controlled copy for this year would be: TD125-09-0001 (TD=Testing Document, 125=the main document number (which never changes, we have about 130 of these documents), 09=the year, and 0001=unique controlled copy number.  So we would issue TD125-09-0001, TD125-09-0002, TD125-09-0003, TD125-09-0004 and so on depending on a given request.
    Now the problem:  We are going to be switching to an Electronic Document Management System (EDMS) in which the documents, when printed from within the EDMS system will print with the EDMS Headers and Footers, and therefore cannot be brought outside of the system.
    My workaround was to print out the Testing Document from within EDMS, therefore it will print with all the appropriate Headers and Footers that the system generates upon printing...then scan the document as a PDF to use as a template, and apply the controlled copy numbers to the PDF version.  The only problem is that Acrobat doesn't seem to have functionality similar to Word's Mail Merge....the beauty of which is you choose which "recipients" you would like to merge, and regardless of the length of the document, it will imprint the same number on every page, print another copy with the next sequential number, etc.  I've looked around in the Professional 8 application and the closest I've come is forms, but then you have no functionality to generate sequential copy numbers except to do each one manually.
    Does anyone know of a plug-in or scripting that will mimic the functionality of Mail Merge but from within Adobe?
    Much Appreciation In Advance!,
    Paul

    Hi Rick
    To explain in brief, the main master table (OCRD) is replicated in fields in the audit trail table (ACRD). A few additional fields are available in the ACRD such as Instance which is a numeric incremental number for each update to a master. Instance 1 is of course the Add action when it is created. Therefore you can pull the information of the BP straight from the ACRD table without having to join and using the MAX number of Instance to get the latest "snapshot" of the master. Then there are fields such as update date and time which can be used to determine if any records have been updated in say the last 5 minutes for example.
    Another suggestion would be to add an activity to the BP rather for each letter that must be created, as this will give you history of each letter that was sent. What can work quite nicely will be to change the layout of the activity to be some letter format and then possibly save this to PDF or print to a Document generator printer as a TIFF file and then attach these back to the activity. From the activity you could also fax, email or print the letter.
    The above scenarios are just a suggestion, and I guess a way of trying to impress on you that SAP Business One is still a good choice, despite a few shortcomings. The important thing to remember with SAP Business One is it's flexibility in terms of User Defined Fields, Formatted Searches, SDK, UDO's, DI API, etc. which can in many cases overcome functional gaps. The best advise is to consider how big the gap is and what it will cost to fill it in terms of project time line and cost.
    Hope this helps
    Kind regards
    Peter Juby

  • Mail-merging from Oracle HRMS - Web ADI vs BI Publisher

    Hi
    I'm currently involved in a project to automate the production of candidate offer letters and contracts from HRMS for our shared HR service centre. The solution I've built to date uses custom database tables and PL/SQL to select the relevant text for the candidate based on a set of criteria, and views to supply the necessary data to Web ADI which then performs the actual merge into a template Microsoft Word document on demand from the end-user.
    The issue we're facing is that the Web ADI to Word interface can't handle more than 64 merge fields (Word basically throws up an error saying the maximum number of fields has been exceeded) so I'm looking at alternatives which will still provide the same (or nearly the same) functionality in terms of mail-merging. From the looks of things it seems like BI Publisher could be a potential alternative; I do however have a few questions which I hope someone can answer!
    1) How easily can BI Publisher be integrated with HRMS to provide such mail-merge functionality on demand? How would such integration be achieved e.g. concurrent program, button on the toolbar in HRMS?
    2) How many merge fields can BI Publisher handle? Our largest letter has nearly 100 unique fields, a number which could go up or down over time.
    3) I understand from looking at some of the tutorials and demos that an RTF template could be used as the basis for the mail merge - where would this be stored, on the database or the file system?
    4) Are there any case studies out there which cover such an implementation of BI Publisher? This would be really useful as it would help in formulating a recommendation to my project manager!
    Many thanks
    Geoff Butler

    metalray wrote:
    Well, glad you got soemthing. Now I try to be more "properly" for you :)
    Good that you are trying.
    The LDAP users do not show up in my Web Logic console. Is a functionality available to allocate the LDAP users to Oracle user groups in web logic or do I expect too much?LDAP = what in your case, do you mean Active Directory .? or any other LDAP directory .?
    You need to configure that in weblogic as one of the authentication providers if you have not done so yet, otherwise they cannot magically appear in WLS console.
    So I am assuming you are expecting too much if you have not configured and trying to look for LDAP users. Let us know if you have already configured one but having trouble managing these users.
    If the functionality (allocating LDAP users to groups) exists in the oracle web logic console,Even though you configure LDAP users in WLS , you cannot assign LDAP users to LDAP groups in WLS since you have to do that in your LDAP not in WLS.
    why does this functionality also in the Oracle BI Publisher Admin screen?Oracle BI Publisher security is managed by Fusion middleware security model not Weblogic , so to get the LDAP users to BIP you need to integrate OBIEE security to BI Publisher.
    Hope this helps. ! Mark if it does.
    Thanks,
    SVS

  • Mail Merge from Numbers with long text fields

    I'm having trouble doing a Mail Merge that's reading fields from a Numbers spreadsheet. Everything is working as expected except for my one field that contains several sentences of text for each record. Nothing from that field gets transferred into the merged document and there is no error message (the courtesy of an error message would be much appreciated if I'm hitting some limit of the feature!).
    If I make fairly short text fields, it will merge successfully, but it would be tedious to go through my large text field and break each one into multiple shorter ones, and I haven't been able to figure out the limit on text length if there is one, so there would be a lot of trial and error. It doesn't seem to be by number of words, so perhaps it is by number of characters?
    I have tried cutting and pasting into a new table in Numbers, pasting as values in case there was any weird formatting at issue.
    I can't find anything to help me either fix this or at least know what the limitations are on Mail Merge. The only discussion I found here suggested either splitting the text fields or creating a new document, and those haven't worked for me.
    Thanks for any leads people can give me on this!

    mezzaluna wrote:
    Luckily I'm only merging a few dozen records, so I can go through by hand and pick out the odd spaces. But I'm open to any ideas for saving me that work, too!
    Numbers can do a character count, but unfortunately can't do that 'live' as you are entering characters into the entry box; only when the string has actually been entered into a cell.
    You can, however, make an estimate of the number of characters by entering them into a text frame of fixed width using a mono-spaced font. In the examples below, the font is Andale Mono 10pt, and the text boxes are 4.50 inches wide.
    The top example shows the result when exactly 254 characters from the first paragraph of your previous post are entered in the box. For this example, leaving off the two words that wrapped onto line six and including only the first five lines of text would leave a 'headroom' of nine (or ten, depending on whether the space after "but" was included) characters.
    To use: Enter your text into the text box using Andale Mono 10 pt. Select and Cut the first five lines. Click on the table cell to receive this chunk. Go Edit > Paste and Match Style to use the font set in the table, or simply Paste to use Andale Mono in this cell.
    Repeat until all text has been transferred.
    More below.
    You can also get the actual character count using the LEN() function. In the table on the left, each of the cells B3, B4 and B5 contain the formula
    =LEN(A)-254
    A3, A4 and A5 contain part or all of the text shown in the two text boxes. I've set the alignment of these cells to 'Align right' to show the end of each string.
    The Conditional formatting rules below are applied to cells B4 and B5. They set the background colour of the cell to 'amber' when the cell in column A is within 10 characters of the maximum and to red when the maximum is exceeded. The numbers in the cells show how many more characters may be added (negative numbers) or how many excess characters (positive numbers) are in the cell to the left.
    These check cells may be placed in a separate table, and the formula revised to include the table name of the data table.
    Regards,
    Barry

  • How do I mail merge from multiple Numbers sheets into a single Pages doc?

    I am trying to mail merge in a Pages doc with more than one Numbers file as a source.
    I am unable to do this, because the target fields only reference a single Numbers sheet. Fields needed from other Numbers sheets to populate my Pages doc show up as 'untargeted' and the merge attempt fails.
    Can anyone help?
    Thanks!

    shefletch wrote:
    I am trying to mail merge in a Pages doc with more than one Numbers file as a source.
    I am unable to do this, because the target fields only reference a single Numbers sheet. Fields needed from other Numbers sheets to populate my Pages doc show up as 'untargeted' and the merge attempt fails.
    The User Guide is clear: we may merge from ONE Numbers table.
    Reorganize your datas so that they are available to the merge process from the first table of the first sheet of the used document.
    External references are your friends to do that.
    Yvan KOENIG (VALLAURIS, France) mercredi 9 septembre 2009 18:01:34

  • Mail merge from numbers in icloud

    Is it posilbe to do a mail merge using numbers and pages when both files are on iCloud?

    It can be done but you have to know where to look. The documents you've added to iCloud are in a folder called Mobile Documents in your user library. If you're going to do this on a regular basis, I suggest making an alias of the sub-folder of Numbers documents in your Documents folder where it will be easy to point Pages to. Or you can open the file from the cloud in Numbers & save/move it to access.
    I'm going to leave feedback to the Pages team about this.

Maybe you are looking for