-
Recently active
Could you please provide guidance on how to use the API (Update metadata instance on folder:PUT) using Apex? For Create metadata instance on folder(POST), I was able to achieve it as described above. However, I’m unsure how to set the Body for Update metadata instance on folder. Sample Code for Use Create metadata instance on folder(POST) box.Toolkit toolkit = new box.Toolkit(); String folderId = project.ProjectFolderId__c; Map<String, String> metadata = new Map<String, String>{ ‘masterdefkeyword1’ => project.Keyword1__c, ‘masterdefkeyword2’ => project.Keyword2__c, ‘masterdefkeyword3’ => project.Keyword3__c, ‘projectsupplementkeyword1’ => project.SupplementKeyword1__c, ‘projectsupplementkeyword2’ => project.SupplementKeyword2__c, ‘projectsupplementkeyword3’ => project.SupplementKeyword3__c }; String scope = ‘enterprise’; String tempName = ‘projectmetadatatemplate’; // Box endpoint(Create metadata instance on folder) String endpoint = ‘https://api.box.com/2.0/folders/’ + folderId + ‘/me
8 likes
3 likes
1 like
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.
We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.