Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

How to pass multiple object through postman to create General Journal Lines in Business Central

(1) ShareShare
ReportReport
Posted on by 34
I wanted to know how to pass multiple object in postman body to create multiple General Journal Line in business central, As I am getting bad request error when I pass multiple object in postman body but when I pass single object it creates General Journal Line, So I wanted to know that is Business central Allow multiple object request of if it is then how to pass it. My request body is:
 
[
    {
        /Journal_Template_Name//GENERAL/,
        /Journal_Batch_Name//DEFAULT/,
        /Account_Type//G/L Account/,
        /Account_No//11110/,
        /Amount/-2010
    },
    {
        /Journal_Template_Name//GENERAL/,
        /Journal_Batch_Name//DEFAULT/,
        /Account_Type//Customer/,
        /Account_No//1000000/,
        /Amount/2010
    }
]
 
 
 
  • Abdul Mateen Profile Picture
    Abdul Mateen 34 on at
    How to pass multiple object through postman to create General Journal Lines in Business Central
    Hi Ram,
    We are using V2 version of API. I am trying to pass below body:

    [

        {

            "Journal_Template_Name": "GENERAL",

            "Journal_Batch_Name": "DEFAULT",

            "Account_Type": "G/L Account",

            "Account_No": "11110",

            "Amount": -2010

        },

        {

            "Journal_Template_Name": "GENERAL",

            "Journal_Batch_Name": "DEFAULT",

            "Account_Type": "Customer",

            "Account_No": "1000000",

            "Amount": 2010

        }

    ]

    For single line its working properly below is the json body:

    {

            "Journal_Template_Name": "GENERAL",

            "Journal_Batch_Name": "DEFAULT",

            "Account_Type": "Customer",

            "Account_No": "1000000",

            "Amount": 2010

        }

  • Ram Pranav Profile Picture
    Ram Pranav 50 on at
    How to pass multiple object through postman to create General Journal Lines in Business Central
    Hi Abdul,
     
    Let us know more about question, does this use api v2? What is the request body which worked fine for a single record?
     
    Regards,
    Ram Pranav.

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 Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans