+ Start a Discussion
AnonymouseAnonymouse 

How to Implement Box.com with VisualForce Page with Error Argument Cannot Be Null

Hello,

I'm currently implementing a box.com (similar to dropbox or google drive) file upload setup with Salesforce. Fortunately, there's an app on AppExchange and some instructions on how to implement it in Salesforce.

The client says they want it on each object and custom object page layout. 

The box.com instructions have the following code (I replaced the generic object name with "Task" for this case):

The visualforce page name is: Task_Box_Section.vfp


<apex:page standardController="Task"
           extensions="box.DisplayWidget"
           showheader="false"
           sidebar="false"
           action="{!GetLoginToken}">
    
<apex:stylesheet value="{!URLFOR($Resource.box__BoxEmbed, 'BoxEmbed/style.css')}"/>
<apex:iframe src="/apex/box__BOXSection?id={!Task.Id}&param=Task_Box_Section"
             rendered="{!DisplayBoxSection}"/>
<apex:iframe src="{!folderShareLink}"
             rendered="{!DisplayBoxWidget}"
             width="100%"
             height="100%"
             frameborder="0"
             scrolling="NO"/>

</apex:page>


Do you see anything that I'm doing wrong ? It's supposed to show up a file upload section, but nothing shows up and there's an error instead.

"Argument cannot be null. An unexpected error has occurred. Your solution provider has been notified. (box)"

May you please assist?

Sincerely,
Jackie