Skip to main content

Notifications

Announcements

No record found.

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

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

(0) ShareShare
ReportReport
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 74,115 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!

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

Featured topics

Product updates

Dynamics 365 release plans