9 Comments

  1. This is brilliant! Such a simple and elegant solution, not to mention it kills the need for a plugin to make text files from the contents of a field/variable. Love it!

    1. Hello I really loved your solution because its so easy to implement.
      After a little research in another solution (http://hbase.net/2014/10/22/exporting-vcards-from-filemaker-pro-13/) I managed to implement a birthday field, a photo and the notes field with returns.
      I created a birthday field as text field because the output format must be in the form of “19701224” for “24th of December 1970” in order for the vcard to import it correctly.
      Then a photo container for the photo.
      The note field can have returns and they are correctly displayed with the modification below.

      Here is the modified VCF Result calculation that worked:

      “begin:vcard” & ¶ &
      “version:3.0” & ¶ &
      “prodid:Microsoft-MacOutlook/0.0.0.150807” & ¶ &
      “UID:” & Get ( UUID ) & ¶ &
      “fn;charset=utf-8:” & Base64Text::First Name & ” ” & Base64Text::Last Name & ¶ &
      “n;charset=utf-8:” & Base64Text::Last Name & “;” & Base64Text::First Name & “;;;” & ¶ &
      “title;charset=utf-8:Founder” & ¶ &
      “org;charset=utf-8:” & Base64Text::Company & “;” & ¶ &
      “url;charset=utf-8;type=work:” & Base64Text::Web & ¶ &
      “tel;charset=utf-8;type=work:” & Base64Text::Phone & ¶ &
      “email;charset=utf-8;type=internet;type=pref;type=work:” & Base64Text::Email & ¶ &
      “bday;charset=utf-8:” & Base64Text::Birthdate & ¶ &
      “photo;charset=utf-8;type=jpeg;ENCODING=B:” & Substitute ( Base64Encode ( Base64Text::Photo ) ; Char ( 13 ) & Char (10); “” ) & ¶ &
      “note;charset=utf-8:” & Substitute ( Base64Text::Note; “¶” ; “\n” ) & ¶ &
      “end:card”

      And thanx again!!

  2. Hi, I’m trying this technique and I’m getting inconsistent results between FileMaker version 13 and 14.
    In version 14 it works all the time, in 13 it works sometimes.
    You’re specifically mentioning “FileMaker 14” in the article, is that because it’s not supposed to work in 13?

    Great technique!

    1. Yeah, I’m only using this in FileMaker 14. If you check the changed functions section of the new features page for FileMaker 14 you can see they added “support for encoding text in Base64 format”. Seeing that in the release notes is what gave me the idea for this technique. I did something similar in FileMaker 13 but got inconsistent results, just like you did. If you need to get this working in FileMaker 13 you could try the BaseElements plugin https://baseelementsplugin.zendesk.com/hc/en-us/articles/205350447-BE-Base64-Encode

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.