cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

startDate format for called QueryPropertiesHistory on Postman

Paitoon
12-Amethyst

startDate format for called QueryPropertiesHistory on Postman

Hello

I would like to use postman to test called service QueryPropertiesHistory 

On Thingworx 8.4

first, I try it on thingworx like 

queryproperieshistory01.JPG

 

When i try it on Postman is like (Only raw body)

queryproperieshistory02.JPG


Value does not show

I think it may about format on startDate and endDate

 
How the format should be on postman

Thank you
 
"oldestFirst"false,
 "maxItems"5,
 "startDate""2021-05-11T22:30:00.000Z",
 "endDate""2021-05-11T23:00:00.000Z"
}



 

1 ACCEPTED SOLUTION

Accepted Solutions
yhan
17-Peridot
(To:Paitoon)

You can try to use web site https://currentmillis.com/ to convert date to numeric milliseconds (like {"startDate":1620223200000, "endDate":1620743400000}), and pass the parameters as JSON in postman.

View solution in original post

4 REPLIES 4
yhan
17-Peridot
(To:Paitoon)

You can try to use web site https://currentmillis.com/ to convert date to numeric milliseconds (like {"startDate":1620223200000, "endDate":1620743400000}), and pass the parameters as JSON in postman.

Paitoon
12-Amethyst
(To:yhan)

This work now Thank you!!queryproperieshistory03.JPG 

Paitoon
12-Amethyst
(To:yhan)

Other Comment

I try this method before on using epoch time converter from this website
https://www.epochconverter.com/

 

But is does not work since it conversion result is wrong huh???

 

queryproperieshistory04.JPG

 

queryproperieshistory05.JPG

Paitoon
12-Amethyst
(To:yhan)

Moreover

This format I use from previous Topic
https://community.ptc.com/t5/ThingWorx-Developers/How-to-use-QueryNamedPropertyHistory-service-with-API-call/td-p/507484

 

So, i don't know the right format is in number or string like that

queryproperieshistory06.JPG

Top Tags