Forum Discussion
NickCharalambou
9 months agoQrew Cadet
Thanks. I will try that method out, as the method below continues to throw up issues.
I had some success with the following code but I had to create interactive Pipeline Steps always referencing the last step, so the g.detail (a.detail...b.detail...etc etc). So for a record save, where I am monitoring 7 fields, I have to have 7 iterative steps.
{% set result = g.detail if g.detail is not none else "" %}
{% if a.requested_offer_types != a.$prev.requested_offer_types %}
{% set prev_req_types = a.$prev.requested_offer_types if a.$prev.requested_offer_types is not none else "unknown" %}
{% set curr_req_types = a.requested_offer_types if a.requested_offer_types is not none else "unknown" %}
{% set result = result + "\n" + "Requested Offer Type changed from '" + prev_req_types + "' to '" + curr_req_types + "'" %}
{% endif %}
{{ result }}
The only item type it does not seem to work for are Checkbox's. I can the the comparative test of old to new to work, but no matter what I do I can form any type of String for the Result.