Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Xmlport in BC365

Posted on by 215

Hello there.

I need to create an xmlport that will accept some user input such as begin and end dates.

I created this in BC and I found that there is a limitation where the request page can not be displayed on an xmlport.

So I went around it and created a report that will capture the user input values and pass to the xmlport.

My code is as follows in the report.

trigger OnAfterGetRecord()
begin
   xmlfile50000.getdates(begindate,enddate);    //sending user input values to the XMLport.
   xmlfile50000.run();
end;
The XMLfile50000.run produces an error .
How do I get around this ? I realize there are limitations to BC365, but I should be able to do this simple task.
Any ideas/suggestions ??

*This post is locked for comments

  • Armela Kamenica Profile Picture
    Armela Kamenica 215 on at
    RE: Xmlport in BC365

    That did it.

    Set the following property on the xmlport

    UseRequestPage = false;

    Thank you very much.

  • Verified answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: Xmlport in BC365

    Did you disable the request page ?

  • Armela Kamenica Profile Picture
    Armela Kamenica 215 on at
    RE: Xmlport in BC365

    I get a blank browser page that says:

    Something went wrong.

    An error has occurred

    Date and time: Fri, 31 May 2019 15:09:14 GMT

    Azure AD tenant ID: common

    Go back home

  • TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: Xmlport in BC365

    What error did you get ?

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans