web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to protect excel sheet in d365fo

(0) ShareShare
ReportReport
Posted on by 25
Hello.

I asked 2 questions, but I didn't get the answer I wanted, so I'm writing.

I want to do 'excel sheet protection' when I make excel file in d365fo, but I only got indirect answers.

I want a direct code that does excel sheet protection.

Thank you for reading the question
I have the same question (0)
  • js lee Profile Picture
    25 on at
    How to protect excel sheet in d365fo
    After many attempts, we succeeded as follows
     
     
       ExcelSheetProtection   _Protection =  worksheet.protection;
       _Protection.isProtected = true;
       _Protection.SetPassword("123");
      package.Save();
  • Martin Dráb Profile Picture
    236,958 Most Valuable Professional on at
    How to protect excel sheet in d365fo
    Good! I'm glad you found in the end that the approach I suggested indeed solves the problem.
     
    For reference, the discussion is split to three threads with the same name. If anyone is interested in details, please refer to them.
    js lee, please use replies next times, instead of creating several new threads on the same topic.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 724 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 580 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 554

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans