Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Customer Payment API - Add field

Posted on by 2,184

Hi All

I have created a new copy of the Customer Payments APIv2 and tried to add new fields but looks like you cannot simply add fields - similar to say customer API. For example, if add Bal Acct Type or Shortcut Dim 1 code or anything not in the original API, using POST though no error data does not get populated. Then I looked at the Graph code units and I could see that only fields defined in below code unit are available:

Graph Mgt - Journal Lines
Now my question is how do we add new fields? Do we need to create our own Graph code unit? 
Categories:
  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,638 on at
    RE: Customer Payment API - Add field

    Please check this

    www.kauffmann.nl/.../

    github.com/.../APIV2

  • FredMibu Profile Picture
    FredMibu 45 on at
    RE: Customer Payment API - Add field

    Sorry to hijack your post a bit, can you tell me where you got the source of the API, i need to customize SalesOrder APi and I cant find the source.. Since you created a copy of a V2 API i figured you had it

  • Verified answer
    JAngle Profile Picture
    JAngle 33,137 on at
    RE: Customer Payment API - Add field

    What if you create an api page without using the graph mgt. codeunit? Then you don’t have to conform to the design. Api pages being the preferred method of implementation you could base it more on the typical odata way. For instance if you publish the cash receipt journal page and post data you just need the template and batch name to satisfy accessing the underlying table

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans