pnp / syntex-samples

SharePoint Premium samples
https://pnp.github.io/syntex-samples/
MIT License
34 stars 21 forks source link

syntex-samples/scenario-samples/Unstructured-DPM-and-CA-Scenario/ formatDateTime #25

Open schneika opened 1 year ago

schneika commented 1 year ago

I recommend to use formatDateTime(triggerOutputs()?['body/Change_x0020_Date'],'MM/dd/yyyy') in the GenerateServiceAgreement Flow, so all Change Dates Formats like 9/9/2022 could be assembled by the Generate Document Action.

Otherwise you will get the following Error for some Date Formats:

[{"ErrorMessage":"Answer for data type 'datetime' has wrong format.","HasError":true},

LeonArmston commented 1 year ago

Hi @schneika

Thanks for your message and feedback

@marcorocca1973 - please could you have a look into this?

Thanks

marcorocca1973 commented 1 year ago

I'll check in few days. Thanks @schneika for your feedback