Hi all, would anyone have some insight into what i...
# suitescript
n
Hi all, would anyone have some insight into what im trying to achieve. Effectively, anytime a file gets added from a 3rd party system to an opportunity record, i want to send that file with the opportunity id to another system. The files are currently attached using the web services SOAP api
For more information, im thinking I do a user-event-script to trigger this, but i want to validate that the user-event-script will work for this. Additional information, im not sure what sublist the attachment lives on
g
i wouldn’t want my UE waiting for this and yet i woudln’t want to fire and forget either — would want some kind of confirmation. perhaps decouple the two abit - Use the UE to quickly create a job that another runner completes. i recall that there was something annoying about file attachments…. might be that you have to use a saved search to get the attachment relationship. can’t remember.
n
Yea I think I would have an exception on the script itself, but it is going to carry over the file attachment and related record to an integration server that then pushes the file to the correct record in Hubspot
b
a user event script is not an option if your integration is using the attach operation
it doesnt trigger user events
n
gotcha, @battk do you know of any way I can trigger an HTTP request when a file is attached?
b
usual alternative is a map reduce or scheduled script
settle for 15 minutes updates
g
if i’m wrong about attach someone please correct me here… if you’re using the attach operation then i think you’re only going to know that it is attached and not know when, etc. So you’ll be relying on disparate information to do the sync (file.created or something). That tenous association can be totally fine — you have to do decide how solid it has to be. A tenuous association will be right a high-perecentage of the time. But if you want it to be tied to the “attachment event” then you’ll have to create you’re own definition for what that is and maybe even a way to track/audit your definition and bake that into your sync logic