We are currently developing an integration for syncing up jobs between Simpro and some external app using the Simpro REST API. The app has a feature which allows users to add some notes on an item and this will be included in the job notes section in Simpro (see attachment below).
But we encountered a problem when a user adds a note in the external app and has the respective job open in Simpro (in read-only mode) then the changes wouldn’t appear in Simpro, even though we can see that the job notes were updated by making an API GET request on the job. Refreshing the page, closing the tab or navigating from the job page didn’t help. The only workaround we found that works is to press 'Cancel' on the job page and reopening it.
Is there any way we can make job changes through the API to appear immediately? Any help is appreciated.
Note changes made through API not appearing in job page
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.
-
Goldfish6413
- Posts: 2
- Joined: Tue Jul 23, 2024 12:43 am
Note changes made through API not appearing in job page
- Attachments
-
- Screenshot 2024-07-23 095741.png (27.71 KiB) Viewed 2257 times
-
SimproAPITeam
- Posts: 831
- Joined: Wed May 01, 2024 2:31 am
Re: Note changes made through API not appearing in job page
Hi Goldfish6413 ,
When you update the notes through the API it is updated immediately after you get the response.
When a job is opened even in read-only, that state of the job will be cached the moment it is opened.
The only way to view the change is to load the job again (which is by closing/cancel the job and opening the job again)
When you update the notes through the API it is updated immediately after you get the response.
When a job is opened even in read-only, that state of the job will be cached the moment it is opened.
The only way to view the change is to load the job again (which is by closing/cancel the job and opening the job again)
Simpro API Team | Simpro Software Group
DEVELOPER CENTER