Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NAV 2009 WebService to post payment voucher

(0) ShareShare
ReportReport
Posted on by 615

I am new in Dynamics NAV 2009.I have a one requirement to post  Payment voucher to NAV(from external application).Help me to write web-service for this purpose.any code unit or function available any one please help .

*This post is locked for comments

  • Suggested answer
    Jens Glathe Profile Picture
    6,092 on at
    RE: NAV 2009 WebService to post payment voucher

    I think we're now at a happy medium. Tharanga is also right, making mistakes is the way of learning things. But better not on a live system ;) The requirement "invoke a posting routine via web service" is something for experienced developers, though. To implement this correctly, you need to know a few things about transactions (in NAV and in web services), error handling, concurrency and (in your example) how the payment voucher got into NAV. It is easier and better for the learning when you can do this together with an experienced developer. It can be frustrating, though :)

    all the best

    Jens

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,116 on at
    RE: NAV 2009 WebService to post payment voucher

    As Jens Glathe said this is a bit complex requirement. You need to know exactly what is your requirement and how you going to implement. There are many online blog posts and articles about web services and please do go through them before you start your development.

    Plus if you are doing it for the first time, then do it in a test environment and once you feel safe and confident about your modification, then only transfer it to live server. ( but best way to learn is by doing yourself and making mistakes and don't worry, make mistakes.)

  • Suggested answer
    Jens Glathe Profile Picture
    6,092 on at
    RE: NAV 2009 WebService to post payment voucher

    Hi saju,

    this is a requirement that should be further discussed before implementing anything. Publishing CU12 doesn't get you anywhere near solving this task. Please contact an experienced NAV developer before you try to implement this. Actually it is dangerous to try implementing this without at least a few years of coding and using experience in ERP systems, IMO.

    with best regards, and no offense

    Jens

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,116 on at
    RE: NAV 2009 WebService to post payment voucher

    Just make a copy of "Gen. Jnl.-Post Line" codeunit and save as a new object, and then modify it so that not any user dialogs will popup during the execution.

    Then go to 810 page (webservice) and insert a new record and select the type as "Codeunit" then give the codenuit ID and  proper name to your service. Finally select publish.

    You are done!

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans