You need to sign in to do that
Don't have an account?
Sumant Kuchipu 1
URL field
Hi,
Working on replacement of standard Notes & Attachments, for this Created a custom attachment object which has fileName, filedownloadLink, etc
and created a VF page which uploads file
and controller to upload process to BOX and returns the download URL (its too big) and inserts custom attachment object with that information
and as soon as uploaded, the current page loads with the created new attachment record with download link.
Here I was not able to insert attachment since the following error is throwing.
Working on replacement of standard Notes & Attachments, for this Created a custom attachment object which has fileName, filedownloadLink, etc
and created a VF page which uploads file
and controller to upload process to BOX and returns the download URL (its too big) and inserts custom attachment object with that information
and as soon as uploaded, the current page loads with the created new attachment record with download link.
Here I was not able to insert attachment since the following error is throwing.
Attachment Creation Error Insert failed. First exception on row 0; first error: STRING_TOO_LONG, BoxDownloadUrl: data value too large:
BoxAttachment__c obj = new BoxAttachment__c(); obj.FileName__c = fileName; // this text field obj.BoxDownloadUrl__c = fileDownloadURL; // this URL field obj insert;I think URL field doesn't allows morethan 255 chars, is there any alternate way to have a download link to a field?
Please find the below thread with similar discussion.
- https://developer.salesforce.com/forums/?id=906F0000000AlVPIA0
- https://success.salesforce.com/ideaview?id=08730000000JRONAA4
Hope this helps.Best Regards,
Nagendra.P