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...
Suggested answer

Find Field Name When posting thru API

(1) ShareShare
ReportReport
Posted on by 106
i'm trying to locate the actual field name I should use in my API journal post.
 
When I send my API t add a journal line I include a json object list of names and values.
Where can I find all the field names I should use in my JSON Object..
 
Example:
 
 Dim postdataje As New JObject
  postdataje.Add(/lineNumber/, /1000/)
  postdataje.Add(/department/, /ADM/)
 
I couldn't find (/department/, /ADM/) as the correct field name.
 
Thanks
 
 
 
  • DS-15051354-0 Profile Picture
    106 on at
    Find Field Name When posting thru API
    Thanks for the suggested idea. I will try that
  • Suggested answer
    Tech_BC_Gokul Profile Picture
    331 on at
    Find Field Name When posting thru API
    Hi

    If your using Department as Dimension. then caption in the field may not be the same at the table. so ensure you add the field name as same in the table elements 

    Example for dimensions - "Shortcut Dimension 1"

    Thanks 
    Gokul
  • Aaron Bauldree Profile Picture
    19 on at
    Find Field Name When posting thru API
    A quick suggestion is to go into one of your journals and make an entry, ensuring you include data in the fields you're interested in, but don't post it. This way, you'll have lines stored in your journal. Once you have that, you can call the API to view all the records in the journal. This should help you identify the correct field names.

    You can also see the field names by looking at the page definition.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,925 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans