You need to sign in to do that
Don't have an account?

Box.com Integration with Trigger
Hi Techie's,
Please help me out
here the scenario when i insert a account record with name 'Test A' and the folder sholud be created with the 'Test A' in Box.com
As Box Supports OAUTH Authentication it is having with conflict with writing trigger ..can any one help on this
Thanks ,
Ram
Please help me out
here the scenario when i insert a account record with name 'Test A' and the folder sholud be created with the 'Test A' in Box.com
As Box Supports OAUTH Authentication it is having with conflict with writing trigger ..can any one help on this
Thanks ,
Ram
To do this you will need to create a Custom Setting that stores your credentials (called BoxCCredentials in the code below) as well as a Visualforce page that is accessible only to the administrator. This will create your access token and store it in the custom setting.
BoxLogin.vfp
BoxController.cls
BoxInsert.trigger
- Save these files
- Add api.box.com to your Remote Site Settings
- Goto /apex/BoxLogin
- Click Login
- You should see "Already has token" (It might refresh the page and Login still shows up. If that happens just refresh the page)
- Insert an account
- View that folder has been created in your box.com account
After this, every time you insert an account, it will pull the access_token from the custom setting. What this does not cover is how to regenerate the access_token with the refresh_token. I'll leave that up to you. Worst case, you delete the Access_Token__c from your credentials custom setting and then revisit the BoxLogin page to generate a new one.All Answers
To do this you will need to create a Custom Setting that stores your credentials (called BoxCCredentials in the code below) as well as a Visualforce page that is accessible only to the administrator. This will create your access token and store it in the custom setting.
BoxLogin.vfp
BoxController.cls
BoxInsert.trigger
- Save these files
- Add api.box.com to your Remote Site Settings
- Goto /apex/BoxLogin
- Click Login
- You should see "Already has token" (It might refresh the page and Login still shows up. If that happens just refresh the page)
- Insert an account
- View that folder has been created in your box.com account
After this, every time you insert an account, it will pull the access_token from the custom setting. What this does not cover is how to regenerate the access_token with the refresh_token. I'll leave that up to you. Worst case, you delete the Access_Token__c from your credentials custom setting and then revisit the BoxLogin page to generate a new one.i am doing this in lightning web component . how can i get code which u r passing as paramter in validateAouthcode method highlighted below.
public static OAuthResult validateCode(String code, String redirect_uri) {