Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Purchase Invoice Remit-to Code error on POST of web service

Posted on by 70

Property \"Editable\" for Remit-to Code is invalid. Expression: [\"Buy-from Vendor No.\" <> '']

The error from Postman on an insert to the Purchase Invoice web service. Is there any way to use a POST call to insert the Remit-to Code field for this page? I tried to use AL on a page extension to make it editable but I don't see it available with the Purchase Header record. I am new to Business Central, so not sure if this is just not able to be set via the web service. We are able to insert many other fields with the same POST call.

thank you

  • Moony253 Profile Picture
    Moony253 70 on at
    RE: Purchase Invoice Remit-to Code error on POST of web service

    Thank you kindly Zhu! I will take a look at this approach.

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 73,378 Super User 2024 Season 2 on at
    RE: Purchase Invoice Remit-to Code error on POST of web service

    Hi, If you publish the standard Purchase Invoice page in the Web Service, there are many limitations. Because it was not created for the API itself.
    I suggest that you recreate an API page, including the Remit-to Code field, which will be much more efficient.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-api-pagetype

    Hope this helps.

    Thanks

    ZHU

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans