Hello
I willed format a mail but my payload result isn't good.
result paylaod in debug node :
LIDL - MONTPELLIER : 17.35 Go
LIDL - LA GRANDE MOTTE : 0.4 Go
LIDL - LE CANNET : 2.06 Go
LIDL - CAGNES SUR MER : 2.23 Go
LIDL - LA TALAUDIERE : 1.46 Go
LIDL - MELUN : 8.01 Go
LIDL - VALLAURIS : 7.22 Go
LIDL - AUBERVILLIERS : 55.39 Go
LIDL - MEAUX LOGISTIQUE : 5.56 Go
LIDL - BOBIGNY : 8.51 Go
LIDL - LA ROCHE SUR FORON : 2.18 Go
LIDL - CHAMALIERES : 11.62 Go
LIDL - ISSOIRE : 9.13 Go
LIDL - NEVERS : 14.93 Go
LIDL - DAIX : 5.42 Go
LIDL - SAINT ETIENNE ROUSSEAU : 16.45 Go
LIDL - RIOM : 4.44 Go
LIDL - NICE GALLIENI : 5.26 Go
LIDL - VILLENEUVE LE ROI : 14.24 Go
LIDL - EVRY : 11.71 Go
BOX V3 - LIDL MARSEILLE SAINT MITRE : 44.29 Go
LIDL - BORDEAUX LE HAILLAN : 28.16 Go
LIDL - ROANNE : 18.9 Go
LIDL - SAVIGNEUX : 8.1 Go
LIDL - PONTOISE : 12.77 Go
but in my mail is :
Bonjour,
Voici la liste des sites ayant surconsommés sur le mois de 2023-07 :
LIDL - MONTPELLIER : 17.35 Go
LIDL - LA GRANDE MOTTE : 0.4 Go
LIDL - LE CANNET : 2.06 Go
LIDL - CAGNES SUR MER : 2.23 Go
LIDL - LA TALAUDIERE : 1.46 Go
LIDL - MELUN : 8.01 Go
LIDL - VALLAURIS : 7.22 Go
LIDL - AUBERVILLIERS : 55.39 Go
LIDL - MEAUX LOGISTIQUE : 5.56 Go
LIDL - BOBIGNY : 8.51 Go
LIDL - LA ROCHE SUR FORON : 2.18 Go
LIDL - CHAMALIERES : 11.62 Go
LIDL - ISSOIRE : 9.13 Go
LIDL - NEVERS : 14.93 Go
LIDL - DAIX : 5.42 Go
LIDL - SAINT ETIENNE ROUSSEAU : 16.45 Go LIDL - RIOM : 4.44 Go LIDL - NICE GALLIENI : 5.26 Go LIDL - VILLENEUVE LE ROI : 14.24 Go LIDL - EVRY : 11.71 Go BOX V3 - LIDL MARSEILLE SAINT MITRE : 44.29 Go LIDL - BORDEAUX LE HAILLAN : 28.16 Go LIDL - ROANNE : 18.9 Go LIDL - SAVIGNEUX : 8.1 Go LIDL - PONTOISE : 12.77 Go
Cordialement
Wher is the probleme ?
[{"id":"b7517c4aec6c6215","type":"json","z":"be3c6730.befb08","name":"","property":"payload","action":"","pretty":false,"x":1250,"y":2100,"wires":[["6c244db27fdb7858"]]},{"id":"6c244db27fdb7858","type":"string","z":"be3c6730.befb08","name":"","methods":[{"name":"replaceAll","params":[{"type":"str","value":"{"},{"type":"str","value":""}]},{"name":"replaceAll","params":[{"type":"str","value":"}"},{"type":"str","value":""}]},{"name":"replaceAll","params":[{"type":"str","value":"\"reference\":\""},{"type":"str","value":""}]},{"name":"replaceAll","params":[{"type":"str","value":"\",\"data\":\""},{"type":"str","value":" : "}]},{"name":"replaceAll","params":[{"type":"str","value":"\""},{"type":"str","value":" Go"}]},{"name":"replaceAll","params":[{"type":"str","value":","},{"type":"str","value":"\\n"}]},{"name":"replaceAll","params":[{"type":"str","value":"["},{"type":"str","value":""}]},{"name":"replaceAll","params":[{"type":"str","value":"]"},{"type":"str","value":""}]}],"prop":"payload","propout":"payload","object":"msg","objectout":"msg","x":1370,"y":2100,"wires":[["d155fd3ab949fa9e","595c3b32829c8fa1"]]},{"id":"d155fd3ab949fa9e","type":"string","z":"be3c6730.befb08","name":"","methods":[{"name":"delRightMost","params":[{"type":"str","value":"-"}]}],"prop":"date","propout":"date","object":"msg","objectout":"msg","x":770,"y":2160,"wires":[["418a22028a4ca28f"]]},{"id":"418a22028a4ca28f","type":"change","z":"be3c6730.befb08","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"\"Export de la surconsommation du \"& $$.date","tot":"jsonata"},{"t":"move","p":"payload","pt":"msg","to":"liste","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":2160,"wires":[["26b9f03148396193"]]},{"id":"26b9f03148396193","type":"template","z":"be3c6730.befb08","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Bonjour,\n\nVoici la liste des sites ayant surconsommés sur le mois de {{date}}:\n{{liste}}\n\nCordialement","output":"str","x":1080,"y":2160,"wires":[["3ff0cc699ddc0384"]]},{"id":"595c3b32829c8fa1","type":"debug","z":"be3c6730.befb08","name":"debug 307","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1550,"y":2100,"wires":[]}]