Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Configurable Business Documents - Word format - Show/Hide fields

Posted on by 341

Good morning/evening,

There is alot of information here so I apologise upfront

Background

  • Using D365FO
  • Requirement is to create Collection Letter format 
  • I am using ER and Configurable business documents
  • Standard D365FO uses the NOTE field on the Collection Letter sequence to provide for specific details for each Collection letter i.e. different note for Letter 1 as compared to Letter 2

Requirement

  • What I want to be able to do is have two sections in the Collection Letter CBC Word document
    • Section 1 for Letter 1
    • Section 2 for Letter 2
  • Question/request
    • Is there some way that I can HIDE Section 2 when I am producing Letter 1
    • And vice versa, HIDE Section 1 when I am producing Letter 2.

Regards

James

  • Verified answer
    Alireza Eshaghzadeh Profile Picture
    Alireza Eshaghzadeh 12,127 Super User 2024 Season 2 on at
    Configurable Business Documents - Word format - Show/Hide fields
    Hi James,
    You can you can condition in ER.
    If you have both sections in one document, you can use case function on Electronic reporting format designer.
    Example:
    CASE(
    model.'Collection letter journal'.'Collection letter code',
    Enums.CustCollectionLetterCode.'Collection letter 1',"Collection letter 1",
    Enums.CustCollectionLetterCode.'Collection letter 2',"Collection letter 2",
    Enums.CustCollectionLetterCode.Collection,"Collection"
    )
  • Configurable Business Documents - Word format - Show/Hide fields
    Hi 
    Doing the same development myself.
    Did you get it to work?
     
    I have set up 2 separate documents and use a condition in Print Management (Collection letter code)
     
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans