Date time conversion (input format yyyy-MM-dd HH:mm:ss.SSSSS) in Mule 4

Advertisements Getting the following error when trying to convert date time to a specific string format: Cannot coerce String (2023-02-07 08:23:00.167000) to LocalDateTime, caused by: Text ‘2023-02-07 08:23:00.167000’ could not be parsed, unparsed text found at index 25 6| crtDate: dtTime as LocalDateTime {format : "yyyy-MM-dd HH:mm:ss.SSSSS"} as String {format:"yyyy-MM-dd’T’HH:mm:ss"} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Trace: at main::main (line:… Read More Date time conversion (input format yyyy-MM-dd HH:mm:ss.SSSSS) in Mule 4

Mule#4: Dataweave: Query value based on a filed

Advertisements I have below input { "OrderId": "TST-test-123212-01", } I have to fetch sfdc id using this value from a variable which I get from another source. I tried with below code %dw 2.0 output application/json var lis = { "TST-test-123212-01": "a2F2h000000pMl8EAE", "TST-test-123212-02": "a2F2h000000q6qHEAQ" } fun getSFDCId (items) = lis.items — { OrderId__c: getSFDCId(payload.OrderId) }… Read More Mule#4: Dataweave: Query value based on a filed