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.
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.
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."
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156