Expand my Community achievements bar.

Creating A BOX shareable link via Fusion

Avatar

Level 4

Has anyone ever created a shareable link to a Box file via fusion before?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Level 5

Hi @OmahaOmaha,

 

Could you please elaborate on how do you see this functionality working, that you have a workfront fusion link that would download the file, preview the file or something else?

 

Maybe write it in a way

  • What have you done by now?
  • How do you expect this to work?
  • What are current limitations you noticed?
  • Do files only live in Box or are they available in Workfront also?

Thank you in advance.

 

Best regards,
Ivan

Avatar

Level 4

Sure, I have a scenario that uploads files to box. I trying to create another scenario that makes a shareable link for that BOX file, so  that I can then share the file with users who do not have access to our instance of BOX.

 

Currently I'm attempting to use the BOX make API call module to pull this off:

 

URL: /files/{{55.`DE:BOX Document ID`}}/shared_links

Body: {
"access": "open",
"permissions": {
"can_download": true,
"can_preview": true
}
}

 

but this errors out when I run it.

Avatar

Level 5

Hi @OmahaOmaha ,

 

After a bit of digging it seems that the URL that you have in the Workfront module is incorrect, per official Box documentation https://developer.box.com/reference/put-files-id--add-shared-link/ it should be a PUT request with

/files/{{55.`DE:BOX Document ID`}}?fields=shared_link

and the body per some examples can be found 

{
  "shared_link": {
    "access": "open",
    "password": "do-not-use-this-password", 
    "unshared_at": "2022-12-12T10:53:43-08:00",
    "vanity_name": "my-shared-link",
    "permissions": {
	  "can_view": true,
	  "can_download": true,
	  "can_edit": true
    }
  }
}

also for the details on each field please check https://developer.box.com/reference/put-files-id--add-shared-link/#body-parameters and adapt the request to your needs.

 

Hopefully this helps.

 

Best regards,
Ivan