Skip to main content

Notifications

Announcements

No record found.

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

how to attach xml to report

(0) ShareShare
ReportReport
Posted on by 1,457
I was trying to attach the xml to report in d365 f& o , but i have no idea how to do it , my report print project invoices and the requirement is when the report opens the xml file should get attach to it , i get the code where the xml code get generated but not getting it how to attach it with report .can any one help me on this .
 
thanks , 
regards , Dinesh .
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,457 on at
    how to attach xml to report
    hi martin ,
    thanks for reply , 
    the requirement is under analysis , get back to you once it is clear .
     
     
    thanks ,
    Regards ,
    Dinesh
  • Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    how to attach xml to report
    XML code is intended to be processed by programs, not to be shown to users. What will an accountant do with a printout of some XML code?
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,457 on at
    how to attach xml to report
    here is the code for the xml file ,when the button is clicked on form the xml is generated . 
     [Control("Button")]
        class ViewFile
        {
            public void clicked()
            {
                super();
    
                if (businessDocumentActionOutputFileTmp)
                {
                    guid UID = submission
                        ? submission.UID
                        : submissionExternal.UID;
    
                    if (UID)
                    {
                        str fileContents = BusinessDocumentServiceController::getOutputFileById(
                            UID,
                            businessDocumentActionOutputFileTmp.ExecutionID,
                            businessDocumentActionOutputFileTmp.ActionID,
                            businessDocumentActionOutputFileTmp.IDName);
    
                        element.outputFile(fileContents, submission.Filename);
                    }
                }
            }
    
        }
     

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans