Announcements
No record found.
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.
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
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."
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 743 Super User 2026 Season 2
YUN ZHU 546 Super User 2026 Season 2
AndrewThomas81 332 Super User 2026 Season 2