Software Venture Consulting

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

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


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:  

RatingRatingRatingRatingRating
  Average rating: 3.5  (69 votes)
  Discuss this Custom Function

Chris Pye, Mactec
http://www.mactec.com.au

Returns text formatted as a vCard

Sample Input:
vcard ( "Fred" ; "Bloggs" ; "F Bloggs & Co" ; "Mr" ; "0754 321 789" ; "0754 321 799" ; "0413 284 343" ; "fred@bloggsco.net" ; "1 Test Lane" ; "Suburb" ; "State" ; "5035" ; "Fredland" )
Sample Output:
BEGIN:VCARD
VERSION:2.1
N:Bloggs;Fred;;Mr;
FN:Fred Bloggs
ORG:F Bloggs & Co;
TEL;work:0754 321 789
TEL;fax:0754 321 799
TEL;cell:0413 284 343
EMAIL;INTERNET;work:fred@bloggsco.net
ADR;work:;;1 Test Lane;Suburb;State;5035;Fredland
END:VCARD


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

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

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 BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

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' (http://fmforums.com/forum/topic/65726-ascii-polution-in-text-exports/)

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. (http://simoncpage.co.uk/blog/2008/08/filemaker-to-vcard/).

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@behealthy.com.aubehealthy.com.au

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:
City/Location:
Comment:
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. decFromHex ( hexValue )
  (Mon, Oct 16, 12:34pm)
2. MonthYearList ( startmonth ; startyear ; numbermonth ; short )
  (Mon, Oct 16, 3:38am)
3. ErrorDescription ( errorNumber )
  (Wed, Sep 27, 2:51am)
4. decodeEntities (text)
  (Wed, Sep 27, 1:22am)
5. HexidecimalToNumber ( HexidecimalValue ; counter )
  (Mon, Sep 25, 12:39pm)
6. FixedFieldConverter ( Fieldname ; f1 ; f2 ; f3 ; f4 ; f5 ; f6 ; f7 ; f8 ; f9 ; f10 ; f11 ; f12 ; f13 ; f14 ; f15 ; f16 ; f17 ; f18 ; f1
  (Fri, Sep 15, 12:34pm)
7. ShannonEntropy ( text )
  (Thu, Sep 07, 5:59am)
8. LetterCount ( text ; summary )
  (Thu, Sep 07, 5:53am)

RSS Feed of Custom Functions