Skip to main content

Hello out there,

I have a use case to implement for my org. 
We have created an experience site on salesforce and I wanted to show the box content for the user’s account on the experience site but I have tried using couple of option in the folder ID section of box component, but it is not working.

how can I make that dynamic folder ID pulling up so that any user logs in to experience site he sees his own folder only and no one else.

Thanks in Advance

It recommended to use the Box UI Element with a Salesforce flow. You are not able to use the standard record page with Experience Cloud users.

https://developer.box.com/guides/tooling/salesforce-toolkit/ui-elements/


@DavidAtBox I’m using the standard component only but after adding the Explorer component it is asking to give the folder ID to display the content.

 

When passing the static folder ID it is displaying the data but I’m looking to pass that dynamically for every user who logs in.

 

I tried creating the custom field on use object and using it but it didn’t worked.


In order to pass the folder id dynamically you will need to create a Salesforce flow. You can then add logic to your flow to pass the correct folder id to the Explorer inside the flow. 


@DavidAtBox we tried the Box Folder Id parameter as {!CurrentUser.effectiveAccountId} by following this document. We are able to see the box folders in the experience builder as a system admin for my user. Now when i published the website and tried for the External users i am getting the error - Box Explorer Error: Maximum stack depth reached: 1001. 

Sharing the screenshot for more clarification.

 

cc: ​@yogesh.goyal