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
Customer Assets - not pulling Archived?
Forum rules
- Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
- No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
- Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
- Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
- Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
- Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
- Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
- Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Re: Customer Assets - not pulling Archived?
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?
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?
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,
Thank you for your feedback, the correct format should be ISO8601 (the one with "T" in it), we will fix it ASAP.
cheers,
Rick Lan
API Developer | simPRO Software Group
API Developer | simPRO Software Group
Re: Customer Assets - not pulling Archived?
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.
DEVELOPER CENTER