Hello
We have a workflow with 3 steps,
- Get rows from SQL, this includes a column of 'now' which is a getdate() from SQL,
- send an email for each row of data returned from SQL
- Update a seperate SQL table to indicate the email has been sent
On the update action one of the fields it updates is 'Date Sent' which is supposed to be the date and time the flow ran, we currently use the 'now' field from the SQL get rows step to provide this data.
However, when this happens, flow is changing the date and time
For example, the input from our SQL row will be 12/10/2016 at 10:07, however when flow updates the SQL table it updates as 12/10/2016 at 20:37. I can see this happen inside flow, see below output from the flow run, the field in question is in red.
This looks to be a 10.5 hour offset, the timezone of our SQL server is Adelaide, currently GMT+10.5.
I require the date returned to SQL to be the same as the time input from the 'now' field without conversion, is this possible?
- Host
- Method
post
- Path
/datasets/default/tables/PSA_Flow_Contracting_DispatchedJobs/items
- Authentication
{ "scheme": "Key", "parameter": "*sanitized*", "value": "*sanitized*", "type": "Raw" }
- Body
{ "Service_Call_ID": "1609-0899", "Appointment": "0001", "Company_ID": "PSAGR", "Contractor_Dispatched": "DC", "Date_Sent": "2016-10-12T10:07:46.143Z", "PO_Number": "POG017419", "PO_Value": 500, "Sent": "Yes" }
- Headers
{ "Pragma": "no-cache", "x-ms-request-id": "7dad3f0f-9d56-4eb8-9af9-021a39eccc5c", "OData-Version": "4.0", "Cache-Control": "no-cache", "Date": "Tue, 11 Oct 2016 23:38:07 GMT", "Location": "
http://127.0.0.1/datasets/default/tables/PSA_Flow_Contracting_DispatchedJobs/f3771550-a416-4c26-ac11-ee41376e2088", "Server": "Microsoft-IIS/8.0,Microsoft-HTTPAPI/2.0", "X-AspNet-Version": "4.0.30319", "X-Powered-By": "ASP.NET", "Content-Length": "403", "Content-Type": "application/json; odata.metadata=minimal", "Expires": "-1" }
- Body
{ "@odata.context": "
http://127.0.0.1/$metadata#datasets('default')/tables('PSA_Flow_Contracting_DispatchedJobs')/items/$entity", "@odata.etag": "", "ItemInternalId": "f3771550-a416-4c26-ac11-ee41376e2088", "Service_Call_ID": "1609-0899", "Appointment": "0001", "Company_ID": "PSAGR", "Contractor_Dispatched": "DC",
"Date_Sent": "2016-10-12T20:37:46.143Z", "PO_Number": "POG017419", "PO_Value": 500, "Sent": "Yes" }