Problem getting folder email address

新規投稿

コメント

1件のコメント

  • Peter Christensen

    Hi

    I tried to reproduce your error and I can reproduce the error when the permissions of the service account is set to 'viewer upload' or lower on the folder I am trying to set the folder email upload on. The service account needs 'editor' or 'co-owner' rights to be able to set the folder email upload attribute.

    For subsequent fetches you need to specify the field when you get the folder info from the SDK - like below

    BoxFolder.Info info = folder.getInfo("folder_upload_email");

    System.out.println(info.getUploadEmail().getEmail());

    Hope this helps

    Best regards, Peter Christensen, Platform Solutions Engineer, Box

    0
    コメントアクション パーマリンク

サインインしてコメントを残してください。