Need help for blocking emails which got triggered while sharing folder

  • 1
  • Problem
  • Updated 5 months ago
Hi All,

We are using sharefile API (https://xxxxxxx.sf-api.com/sf/v3/Items(id)/AccessControls/BulkSet) for sharing a folder with multiple users (email ids ).

We have set NotifyUser property to false. Still, it is sending emails to users with whom folder is shared. Can you please guide us to stop sending these emails?

Thanks in Advance

--Pavan Deshmukh 
Photo of Pavan Deshmukh

Pavan Deshmukh

  • 3 Posts
  • 0 Reply Likes

Posted 5 months ago

  • 1
Photo of Pratik Somanagoudar

Pratik Somanagoudar, Employee

  • 18 Posts
  • 1 Reply Like
 Hi Pavan,

I can help you with this. For this you need to make sure both fields NotifyUser (boolean) and NotifyMessage (string) should not be supplied on AccessControlsBulkParams. Alse these two fields should not be set on the individual AccessControlParams.

Let me know if that works.

Thanks
Pratik S
Photo of Pavan Deshmukh

Pavan Deshmukh

  • 3 Posts
  • 0 Reply Likes
Hi Pratik,

I tried above solution and it worked !!! :) 

Thanks a lot for help on this ... 

Thanks,
Pavan Deshmukh
Photo of Pratik Somanagoudar

Pratik Somanagoudar, Employee

  • 18 Posts
  • 1 Reply Like
Great. Thanks for letting us know Pavan. Do get in touch for any further queries.
Photo of Pavan Deshmukh

Pavan Deshmukh

  • 3 Posts
  • 0 Reply Likes
I am curious to know why NotifyUser=false didn't work. Ideally, as per API documentation, it should work, right?? 

I feel if ShareFile updates this case in API documentation it will be very helpful for people who will use this API in future. Thoughts?

Thanks for all your help and support on this issue. 

--Pavan Deshmukh
Photo of Pratik Somanagoudar

Pratik Somanagoudar, Employee

  • 18 Posts
  • 1 Reply Like
Hi Pavan,

Thanks for the feedback, we will definitely look into it. The current document does mention this https://api.sharefile.com/rest/docs/resource.aspx?name=AccessControls, where in it is stated
" If an AccessControl doesn't specify NotifyUser or NotifyMessage property their values are inherited from the corresponding top-level properties".
But i think we can have better wording to make this clear. 
Will write up a ticket.
ThanksPratik