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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

startDate format for called QueryPropertiesHistory on Postman

Paitoon
13-Aquamarine

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"
}



 

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
13-Aquamarine
(To:yhan)

This work now Thank you!!queryproperieshistory03.JPG 

Paitoon
13-Aquamarine
(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
13-Aquamarine
(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

Announcements


Top Tags