Page 1 of 1

Customer Assets - not pulling Archived?

Posted: Thu Nov 19, 2020 11:05 am
by jmc2408
Hi,

Using the following request: /api/v1.0/companies/{companyID}/customerAssets/

but i notice that this doesnt appear to be showing assets where Archived=true where I search for the archived asset via /api/v1.0/companies/{companyID}/customerAssets/{customerAssetID} it shows the details no problem.

I've created a loop to gather the asset id's then looping through these to get the detail but when i was comparing the exports results via postman and the results in simPRO BI i was noticing over 3k assets not exported and i've traced this to be the reason.

Is there any rational behind why the first request wouldnt include archived and is there any options to amend that? - Archived results are able to exported on other request ie Quotes/Jobs so find it a bit puzzling that Customer Assets would exclude those? - I've checked and double checked i'm not exlcuidng these on purpose but theres always a chance it's just me missing something.

Thanks

Re: Customer Assets - not pulling Archived?

Posted: Thu Nov 19, 2020 11:15 am
by jmc2408
Also the format of DateModified differs from other tables:

customerAssets
"DateModified": "2020-11-10 09:00:38.356596+00",


job
"DateModified": "2020-11-18T17:26:34+00:00"


its not a biggie but causes a few workaround - again is there a reason this differs to other results?

Re: Customer Assets - not pulling Archived?

Posted: Thu Nov 19, 2020 10:42 pm
by rick.lan
Hi jmc2408,

Thank you for your feedback, the correct format should be ISO8601 (the one with "T" in it), we will fix it ASAP.

cheers,

Re: Customer Assets - not pulling Archived?

Posted: Fri Nov 20, 2020 10:21 am
by jmc2408
Thanks Rick that would be useful - any update with regards to the fetching of only assets where archived = false as default? I've been able to get all customer assets by including archived=in(true,false) as a workaround.