web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Is possible to update a resources Craft ID via Business Central API

(0) ShareShare
ReportReport
Posted on by 5

Using the api.businesscentral.dynamics.com/.../{{TenantID}}/{{Environment Name}}/ODataV4/ API, is there a way to do a patch or post for CRAFT ID on a resource?  I am working on a requirement to implement and was told by another consultant that the craft id filed can only be populated on creation of a resource.  However, I need to be able to update this field as well and would like any assistance with the query.

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    I do not think that craft id is a standard field in Business Central. So if you have that field customized in your installation you will need to create a custom API in order to work with that field.

    Please refer to this documentation on how to customize API in Business Central.

    learn.microsoft.com/.../devenv-develop-custom-api

  • sj1906 Profile Picture
    5 on at

    I already have a custom API and this is the field under the Resource Card.  But that wasn't my question, here is what I was told about this field, and I am asking is there a way to make an update (eg not just create the Resource record) -- "While updating resource details please do not update craft id if already assign any value because on craft id field there is standard validation that raise popup to ask from user yes or no and in API’s client callbacks are not supported, and we can not skip standard validations so if you want to update craft id of already assigned then it is possible only in business central directly on resource card."

    pastedimage1682538396232v1.png

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    The best way to handle this would than be to change the validation of the craft ID field so the validation with the pop-up only runs if GUI is allowed. There is a specific function in AL to control this.

    learn.microsoft.com/.../system-guiallowed-method

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 743 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 546 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 332 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans