Hello,
I am using (or trying to use) the trim function in combination with the result of an approval,
specifically the comment. Now it seems that the function throws an error when there is no comment, e.g.
the function has to operate on an empty string. Is there a good workaround for this?
This is my current code:
if(equals(length(trim(body('Aktualisiertes_Approval_aus_Logliste_abrufen')?['Approver_Kommentar'])),0),'',concat('_',trim(body('Aktualisiertes_Approval_aus_Logliste_abrufen')?['Approver_Kommentar']),'_'))The purpose of the function is to add the comment to a string with markup: _approver comment_
But since this does not work with empty strings, the _ _ shall be omitted in this case.