HomeTechnical Support » E-mailing

E-mailing

#If/#Else/#EndIf issue Messages in this topic - RSS

paula
Administrator
Posts: 208


9/28/2016
paula
Administrator
Posts: 208
Thank you for the reference, Joey. I did not recall that variable exists as we always use EmailBody. I retested and discovered the variable does not provide results in the Form, only when emailing. The original code I provided does work. I tested it with {DocAmnt}, {DocMisc} and {AMT4} and they all worked during the email process with the original syntax I provided. Another copy is below:

#If «[>, '{AMT4}', '0']»
#Assign EmailBodyFile, ÷C:\Users\Paula\Desktop\Test\Verylate.txt÷
#Else
#Assign EmailBodyFile, ÷C:\Users\Paula\Desktop\Test\Current.txt÷
#Endif

I created text files on my desktop for testing, but any valid path will work.
0 link
joey
Posts: 6


9/27/2016
joey
Posts: 6
Hi Paula,

On page 214 in PB manual, there is a variable name for {Emailbodyfile}.

If I use #Assigns Emailbody, I would have to create the e-mail messages within the PB form as oppose just to pick a text file? Just want to confirm this is what I have to do.

Thank you for your prompt replies!
0 link
paula
Administrator
Posts: 208


9/27/2016
paula
Administrator
Posts: 208
Also, I just noticed you are using ‘emailbodyfile’. This is not defined within PrintBoss and will not work. You needs to use a #Assigns EmaiBody section for each condition.
0 link
joey
Posts: 6


9/27/2016
joey
Posts: 6
Yes it is.

This is what I have in the Runtime Tab

#Assign DocNo, "", 7.543-8.044, 0.840-0.989, LRAWSV
#Assign EmailTo, "", 3.562-4.862, 1.259-1.422, LRAWSV
#Assign AMT4, "", 6.311-7.611, 10.238-10.401, LRAWSV
#Assign AMT3, "", 4.740-5.431, 10.238-10.401, LRAWSV
#Assign AMT2, "", 2.695-3.995, 10.305/0.080, LRAWSV
#Assign AMT1, "", 0.934-1.639, 10.318/0.080, LRAWSV

In addition to this, when I go into the PB form, I can add the text {AMT4} and it gives me the amount.
0 link
paula
Administrator
Posts: 208


9/27/2016
paula
Administrator
Posts: 208
Is the Amnt4 field assigned in the PrintBoss Form?
0 link
joey
Posts: 6


9/27/2016
joey
Posts: 6
Thanks Paula for the reply but it is not working. I am currently printing three statements and two of the three has an amount for {AMT4} but all of them is pulling the "Current" email body message. The basic formula that I am using is below:


#If «[>, ‘{Amnt4}', '0']»
#Assign EmailBodyFile, ÷C:\PrntBoss\Email\Body\verylate.txt÷
#ELSE
#Assign EmailBodyFile, ÷C:\PrntBoss\Email\Body\current.txt÷
#Endif


Currently, I have the above formula in the Footer Section of the forms and the #Assign variables are located in the runtime tab.

What we are trying to get the printboss program to assign the proper email body based on the aging of their customers. I need to show them this is actually feasible with Printboss before selling them the enterprise version.
0 link
paula
Administrator
Posts: 208


9/22/2016
paula
Administrator
Posts: 208
Joey you have the right idea, but the wrong syntax. It should be:
#If «[> , ‘{Amnt4}', '0']»
Paula
0 link
joey
Posts: 6


9/21/2016
joey
Posts: 6
Hi,

We are trying to automate the selection of the Email Body to use based on several criteria. Basically, we will be using four different email body messages based on the customer's aging on his monthly statement.

Current {AMT1}
30 Days {AMT2}
60 Days {AMT3}
90 Days+ {AMT4}

I am trying to use a basic formula but I can't seem to have it working. Below is the PB statement that I am using. (Footer Object)

#If [÷{AMT4}>0÷]
#Assign EmailBodyFile, ÷C:\PrntBoss\Email\Body\verylate.txt÷
#ELSE
#Assign EmailBodyFile, ÷C:\PrntBoss\Email\Body\current.txt÷
#Endif


Essentially, I want the statement above to use the EmailBody "Verylate" when the PB Variable {AMT4} is greater than 0 else use EmailBody "Current". In my test environment, I am printing to customer statements which both of them as an amount greater than 0 in the 90 days field but it is using the "Current" EmailBody.

Once I have the basics covered, then I think I should be good to create more complex formulas.

Any help would greatly be appreciated.

Joey
0 link






Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software