Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages

Shopping Cart
Shopping Cart


Free Newsletter


Privacy Policy

FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.


 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

vcard ( FirstName; LastName; Org; Title; Phone; Fax; Mobile; Email )

Rate this function:  

  Average rating: 3.5  (72 votes)
  Discuss this Custom Function

Chris Pye, Mactec

Returns text formatted as a vCard

Sample Input:
vcard ( "Fred" ; "Bloggs" ; "F Bloggs & Co" ; "Mr" ; "0754 321 789" ; "0754 321 799" ; "0413 284 343" ; "" ; "1 Test Lane" ; "Suburb" ; "State" ; "5035" ; "Fredland" )
Sample Output:
FN:Fred Bloggs
ORG:F Bloggs & Co;
TEL;work:0754 321 789
TEL;fax:0754 321 799
TEL;cell:0413 284 343
ADR;work:;;1 Test Lane;Suburb;State;5035;Fredland

 Then copy & paste into FileMaker Advanced's Edit Custom Function window.


Creates a vCard from contact fields.

I created this function as simple and portable way of exporting vCards from any Filemaker solution. This function takes contact info and formats it into the vCard format as text. The result field can be exported as tab separated text and saved with the .vcf file extension which can then be opened in the Apple Address Book and other software that supports the vCard format.

Please note that you need to use the "Export Field Contents" script step to maintain the returns at the end of each line. Using export record will strip the returns, and the vcard file will not open.

I started off thinking that this function should be kept simple, but then I thought it might be easier to delete unwanted fields rather than adding them latter.

Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it


5 most recent comments | Show all 12 comments

Although implementing is somewhat tedious, the function works like a charm. I get a text field with an exact copy of the vCard content. Using normal text output (Export Field Content, Export Record), you get a .vcf file, eventually with a calculated file name. Unfortunately this file is rather useless, due to the UTF-16 encoding, and the file will not be recognized as a guilty 'Business Card File' (

Even if FM is obviously produced exclusively in order to fuel up the Filemaker CEO's private jet, the BIG FILEMAKER WORKAROUND BOOK, about 4 billion pages, and St. Google will give you the solution. (

Thus generated vCard sent from your device to a mobile device by bluetooth will do the job perfectly.

Thanks to Chris and Briandunning

Guillermo, Sevilla/Spain
July 11, 2013 3:33am

Fantastic, works well. How do I add "notes"?

Gary, Brisbane
November 06, 2013 11:02pm

I got it to put a note into Contacts but it would not work if there was more than one line of notes

Gary, Brisbane
November 07, 2013 3:32pm

You actually make it seem so easy with your presentation but I find this topic to be actually something that I think I would never understand. It seems too complicated and very broad for me. I am looking forward for your next post, I will try to get the hang of it!

BrittBerri, Llanteg
January 19, 2015 4:33pm

I have read some good stuff here. Definitely value bookmarking for revisiting. I surprise how much effort you place to make this type of fantastic informative site.

angelinaul, Acquafredda
May 27, 2015 4:42pm

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 5 + 7 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. HexUUIDToNum_cf (_uuid)
  (Sat, Jun 16, 1:55pm)
2. httpResponseCode ( responseHeaders )
  (Tue, Jun 12, 10:40pm)
3. FindDuplicateCharacters ( string )
  (Fri, Jun 08, 5:01pm)
4. FieldRepetitionLast ( field ; maxRepetition )
  (Wed, Jun 06, 6:05pm)
5. CountModifiedRecords ( NameTimestampField ; StartTimestamp ; EndTimestamp )
  (Mon, May 28, 8:23am)
6. JSONArrayLength ( JSONArrayStr )
  (Fri, May 25, 7:46am)
7. interpolation (y1; y2; y3; x1; x2; x3; x1y1; x2y1; x1y2; x2y2; rnd)
  (Sat, May 19, 3:55am)
8. @JSONFormatElements ( json )
  (Tue, May 15, 3:31am)

RSS Feed of Custom Functions