Jump to content

insert fields from database within an email?


This topic is 4332 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I am sending emails to people in my database telling them the mailing address we have is incorrect. I want to include the "fields" that refer to that address in the email so they will see what address, city, state we were using. I cannot figure out how to insert these fields with the correct operators around them so i can have each email customized for that person in the database.

Here is a sample of the email i am sending.

DNNUserExport Converted::firstname& ":¶" &

"x organization is verifying snail mail addresses. We sent mail to this address and it was returned to us." ¶¶

DNNUserExport Converted::address1

DNNUserExport Converted::city

DNNUserExport Converted::state

DNNUserExport Converted::postalcode

"Thank you very much.¶¶

¶MY Name

¶Membership Director

¶x organization

[email protected]

¶1966-1968"

What do i put around these fields so they get filled in with the correct field. I was successful in FM Pro 7 but am totally stuck in 11.. And i am a NOVICE..

thank you so much.

Janice

Link to comment
Share on other sites

Hi Janice,

the secret is to put nothing around the field names ;) as opposed to the text constants.

See if this modified version works for you. You may need to fiddle a bit with the number of carriage returns.

Not sure about the final paragraph. If it's a constant, put in quotes, otherwise don't. Make sure there's always one “&”

between each bit.

DNNUserExport Converted::firstname & ":¶" &

"x organization is verifying snail mail addresses. We sent mail to this address and it was returned to us.¶¶" &

DNNUserExport Converted::address1 & "¶"

DNNUserExport Converted::city & "¶"

DNNUserExport Converted::state & "¶"

DNNUserExport Converted::postalcode & "¶"

"Thank you very much.¶¶"

& "¶¶"

& MY Name

&"¶"

& Membership Director

& "¶"

& x organization

& "¶"

& [email protected]

& "¶1966-1968"

What do i put around these fields so they get filled in with the correct field. I was successful in FM Pro 7 but am totally stuck in 11.. And i am a NOVICE..

thank you so much.

Janice

  • Like 1
Link to comment
Share on other sites

thanks... So i copied what you had and now i get this message..

"An operator (e.g. +, -, *, …) is expected here." this message shows where i put the red/underline

DNNUserExport Converted::address1 & "¶"

DNNUserExport Converted::city & "¶"

DNNUserExport Converted::state & "¶"

DNNUserExport Converted::postalcode & "¶"

i can get the rest of the email to work.. just these inserted fields.

thanks

Link to comment
Share on other sites

thanks... So i copied what you had and now i get this message..

"An operator (e.g. +, -, *, …) is expected here." this message shows where i put the red/underline

DNNUserExport Converted::address1 & "¶"

DNNUserExport Converted::city & "¶"

DNNUserExport Converted::state & "¶"

DNNUserExport Converted::postalcode & "¶"

i can get the rest of the email to work.. just these inserted fields.

thanks

Oops, yes, as I said, you need to make sure that all the bits are connected via an ampersand (&).

It's easy to forget some … Change the above passage to:

DNNUserExport Converted::address1 & "¶" &

DNNUserExport Converted::city & "¶" &

DNNUserExport Converted::state & "¶" &

DNNUserExport Converted::postalcode & "¶" &

Good luck.

Link to comment
Share on other sites

I was successful in FM Pro 7 but am totally stuck in 11.

There was no change in the way a calculation combines field data with literal text.

---

Well, actually there was one change in version 8.5: instead of =

DNNUserExport Converted::address1 & ¶ &

DNNUserExport Converted::city & ¶ &

DNNUserExport Converted::state & ¶ &

DNNUserExport Converted::postalcode 




you can write =





List (

DNNUserExport Converted::address1 ;

DNNUserExport Converted::city ;

DNNUserExport Converted::state ;

DNNUserExport Converted::postalcode 

)

which has the additional advantage of skipping the entire line when a field is empty.

Link to comment
Share on other sites

Will post the formula

DNNUserExport Converted::firstname& ":¶" &

"The xxx organization is verifying snail mail addresses. We sent mail to this address.¶¶

DNNUserExport Converted::address1 & ¶ &

DNNUserExport Converted::city & ¶ &

DNNUserExport Converted::state & ¶ &

DNNUserExport Converted::postalcode

Can you update your snail mail for us? ¶Thank you very much.¶¶

¶MY Name

¶Membership Director

¶the organization

[email protected]

¶Amina, Valverde-Mao Group 18

¶1966-1968

¶http://www.xxx.org"

This is what i get when i run that..

My organization is verifying snail mail addresses. We sent mail to this address.

DNNUserExport Converted::address1 &

& DNNUserExport Converted::city &

& DNNUserExport Converted::state &

& DNNUserExport Converted::postalcode Can you update your snail mail for us?

Thank you very much.

Link to comment
Share on other sites

I have lengthy explanations and corrections for you ;), but I suggest you just post your (zipped) database file and let me have a peek inside - syntax errors are much easier to correct when you have the calculation engine at your side.

Link to comment
Share on other sites

Check where your quotes begin and where do they end. Anything between quotes is a literal text. Note that you must have an operator between each element of a formula - see::

http://www.filemaker.com/11help/html/create_db.8.36.html#1030710

Link to comment
Share on other sites

This topic is 4332 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.