Unfortunately, the component doesn't appear to allow for passing a specific record ID. Instead, it seems to get the record ID from the context (contextObjectId perhaps?). This probably works for most use cases, but let's say I have an object called Book, and another object called Author. Each Book record has an Author field, and I want to display the Dropbox folder for the book's author on the Book record page. I don't just want to show the Dropbox folder for the Book being viewed - I want to show the Dropbox folder for a different object, with a different object ID (saved as a field on the object being viewed).
Has anyone been able to achieve anything like this? I considered using the Embedder library within a LWC but the problem is that I would have to create a link for every subfolder (it's a private, shared folder with many subfolders). I could maybe do that programmatically via the controller, but that seems clunky given that a Dropbox-Salesforce integration already exists.
tl;dr: i would like to do this
<Dropbox_for_SF:Dropbox objectId="[some objectId that differs from the ID of the record being viewed]" />
Hi @w_l; welcome to the Dropbox Community and happy Monday!
In order to work with Custom objects, you’ll first need to create a Custom Visualforce Page with code you mentioned.
From there, the value for standardController will need to be replaced with the custom object API name. You can find the API name of your custom object by following the steps in this Help Center article:
Hi Walter, thanks for the reply. I think you misunderstood my post. I'm aware that I can replace standardController with the custom object API name. I would also like to be able to pass a specific object id, which will be different from the ID of the record I am currently viewing. For example, if I'm looking at the record page for a specific Contact record, I don't want to load the Dropbox folder for that contact; I want to load the Dropbox folder for that contact's organization record. Do you have any suggestions for how to achieve that? Cheers
Re: Salesforce integration - use VF component with different objectId?