Author Topic: Backed amount in e-mail  (Read 1141 times)

Tags:
  • All members
  • Posts: 207
Backed amount in e-mail
« on: 21 Apr 2018, 14:17 »
In my notification e-mails, one for winners and one for loser I have the following lines.

Winner e-mail
<p class="capitalize"><i>The stake on ["sel_name"] was £[hist_1_amountb].

Loser e-mail
<p class="capitalize"><i>The stake on ["sel_name"] was £[hist_1_amountb].

When I have a winner, it sends
The stake on selection was £0.
When I have a loser, it sends
The stake on selection was £5.

Or whatever it was, and obviously, it puts the selections name where I have put selection.
Anybody know why this happens and I don’t get the correct amount for a winner?
Mike

  • Moderator
  • Posts: 3597
*
Re: Backed amount in e-mail
« Reply #1 on: 22 Apr 2018, 20:23 »
Hi Mike
hist_1_backa should be the total amount of all back bets in the last settled market
if the last settled market had no back bets, hist_1_backa would return 0

try adding these conditions to the emailing trigger, one at a time and test:
and selections trigger expression hist_count is greater than 0
and selections trigger expression hist_1_backa is greater than 0 

Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 207
Re: Backed amount in e-mail
« Reply #2 on: 22 Apr 2018, 20:27 »
Cheers
Will give them a bash
Mike

 

Please note, BetFair is seems to be currently OFFLINE