UI link for attachments based on API results

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.
Post Reply
nikolaiblackie
Posts: 26
Joined: Sun Jun 24, 2018 10:01 pm
Contact:

UI link for attachments based on API results

Post by nikolaiblackie » Tue Feb 09, 2021 12:44 am

I need to add links to attachments that users can select to get access to the attachment.

i.e. https://enterprise-sandbox-au.simprosui ... chment.php? but from parameters returned from https://developer.simprogroup.com/apido ... 06b81cf378
Nikolai Blackie
www.adaptiv.nz
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: UI link for attachments based on API results

Post by Muqeet » Tue Feb 09, 2021 1:52 am

Hello Nikolai,

The location parameter in attachment url is encrypted value which is not available in rest api. Please follow the link below for a similar issue.

http://apiforum.simprogroup.com/viewtop ... view#p1175
Muqeet
API Developer | simPRO Software Group
nikolaiblackie
Posts: 26
Joined: Sun Jun 24, 2018 10:01 pm
Contact:

Re: UI link for attachments based on API results

Post by nikolaiblackie » Tue Feb 09, 2021 10:08 pm

Thanks Muqeet, that approach doesn't really support our requirement. We wanted to insert download links in the notes fields of an external system so users could click, authenticate with simPro credentials and download.

Thanks for confirming, we will look at a different approach.
Nikolai Blackie
www.adaptiv.nz
Post Reply