Hi there !
So I built a low using this trigger. it's an approval flow, so I request an approver, a comment, a couple of date. The caller can also fill in an optional email account who should be aware of the approval.
Then, in the flow I update the Sharepoint library with the data the user filled in.
Unfortunatelly, If the optional email is left blank, it generate an error. "Bad template. email2 variable don't exist..." (see picture below)
In fact the trigger do not create an internal Variable in the JSON for the non filled-in fields.
How can I manage this ? How can I test if the user filled in a field ? Because as soon as I try to refer to it, if it's empty, it failed the flow.