Hi All,
I have a flow that is working with multiple 'formatdatetime(triggerOutputs()' when they are ALL filled out on the Plumsail form, but when I leave out/don't fill in one date the flow fails to work.
The message I receive is as follows:
InvalidTemplate. Unable to process template language expressions in action 'Start_document_generation_process_with_json' inputs at line '0' and column '0': 'The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'
The expression I am using for each date/time is:
formatDateTime(triggerOutputs()?['body/EOWD'],'D')
But varies depending on each date/time.
I have tried applying an 'Initialize Variable' string type but I think I must have been doing it wrong.
Would anyone be able to help me resolve this issue?
Kind regards,