My Products
Help
Gert-Jan van der Kamp
CONTRIBUTOR ***

JournalTransactionV2: get JournalNumber of newly created Journal?

by Gert-Jan van der Kamp

Hi, 

 

When I POST a new journal to JournalTransactionV2 the api replies with "" and I can see the newly created journal in screen GL3010PL but it's not yet posted. 

 

There is a second method /action/release but that requires a JournalNumber. How do I get the the Number of the newly created journal from the api, so I can release it? Normally you would expect the api to return the newly created journal or at least the autogenerated Number.. 

 

 

2 REPLIES 2
Accepted solution
Yıldırım
VISMA

by Yıldırım

Hi, you can read the recently created object's value via Response Headers > Location
POST JOURNAL TRANSACTION - Visma.Net API.jpg
https://community.visma.com/t5/Knowledge-base-in-Developers/How-to-read-recently-created-object-ID-f...

Gert-Jan van der Kamp
CONTRIBUTOR ***

Prefect thx!