Hi team,
We have discovered that when an attachment is uploaded via the API to a Job, the DateModified field on the Job is not being updated to match the date the file was uploaded.
This doesn't seem to be intended behaviour, as uploading a file via the UI does update the DateModified field.
To replicate this issue, we are querying the Job endpoint (e.g. api/v1.0/companies/#/jobs/#) to get the DateModified, uploading a file via the /attachments/files endpoint, and then querying the Job again to check if the DateModified was updated.
Please let us know if this is able to be resolved as our integration depends on the DateModified field for querying Jobs that have changed since the last run of our service and is missing Jobs where files were uploaded via the API.
Thanks,
Andy
[Released]Job Attachment Upload via API Not Updating Job DateModified
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: Job Attachment Upload via API Not Updating Job DateModified
Hi Andy,
I have tested and verified the bug you have pointed out to us. Thank you!
We've created an issue to fix this but we can not give a timeline of when it will be completed. Please follow our release notes to see the latest updates to the API.
Regards
I have tested and verified the bug you have pointed out to us. Thank you!
We've created an issue to fix this but we can not give a timeline of when it will be completed. Please follow our release notes to see the latest updates to the API.
Regards
Sindre
API Developer | Simpro Software Group
API Developer | Simpro Software Group
Re: Job Attachment Upload via API Not Updating Job DateModified
Appreciate the response Sindre.
I haven't tested them myself, but might be worth checking other entities that have file attachments (e.g. Leads, Quotes, etc) to see if they are affected by the same bug too.
Will keep an eye on the patch notes in the meantime.
Andy
I haven't tested them myself, but might be worth checking other entities that have file attachments (e.g. Leads, Quotes, etc) to see if they are affected by the same bug too.
Will keep an eye on the patch notes in the meantime.
Andy
DEVELOPER CENTER