Posts about the simPRO API. Help/support/how-to etc.
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.
-
wildhart
- Posts: 32
- Joined: Tue May 11, 2021 8:54 pm
Post
by wildhart » Sun Aug 20, 2023 9:59 pm
When I retrieve a Job note from
sometimes they have attachments in the format:
Code: Select all
{
"_href": "/common/getAttachment.php?location=SomeLongId&filename=Job_No_21179.pdf&download=0&thumbnail=0&export=0&v=1",
"FileName": "Job_No_21179.pdf"
},
How can I retrieve the base64 of this attachment via the API? I can't find any mention of this in the docs, and I've tried "/jobs/21179/attachments/files/SomeLongId" but that is 404
If I log into the website I can download it from
Code: Select all
https://mysubdomain.simprosuite.com/common/getAttachment.php?location=
but I need to retrieve it via the API...
-
PremMarkeli
- Posts: 148
- Joined: Tue Oct 26, 2021 3:11 am
Post
by PremMarkeli » Mon Aug 21, 2023 1:17 am
Hi,
Currently its not possible to get those attachments information via API.
Regards.
Prem
API Developer | Simpro Software Group
-
wildhart
- Posts: 32
- Joined: Tue May 11, 2021 8:54 pm
Post
by wildhart » Mon Aug 21, 2023 2:15 am
Thanks @PremMarkeli,
That's a bit of a problem for us though. Do you have any plans to make these attachments accessible via the API?
-
Sindre
- Posts: 493
- Joined: Wed Apr 20, 2022 4:51 am
- Location: Brisbane
Post
by Sindre » Tue Aug 22, 2023 2:49 am
Hi, wildhart,
There are currently no plans of updating the notes endpoint with functionality for attachments.
If this is something that you need or would find useful please post it in our feature request channel and it will be evaluated for future development.
Regards
Sindre
API Developer | Simpro Software Group