0

So i have managed to do a couple of things with item attributes using the API, but I am still dealing with the uphill battle of using the REST/OData APIs in general.

I have been able to get the list of attributes, and I have managed to create an endpoint using an AL query that shows the items with the attributes.

My problem now is to figure out how I can create a new attribute of a given type and associate it with a particular item via a REST/OData POST.

Does anyone have any ideas or pointers?

panagioti
  • 426
  • 4
  • 14
  • Could you share a bit more about what you have tried so far? Maybe some code examples/ideas? – kaspermoerch Jun 23 '21 at 10:35
  • check this page:https://stackoverflow.com/questions/56443776/how-to-get-item-attributes-via-api/67889947#67889947 – panagioti Jun 24 '21 at 18:32
  • the page was a question about how to get attribute information. i'm in the situation where i now have to update those attributes. there is no endpoint out-of-the-box. i think i'm going to have to have to learn AL. – panagioti Jun 24 '21 at 18:33

1 Answers1

0

If you are not running Business Central OnPrem, then there might be an app on AppSource that provides the APIs you are missing.

Another option would be to create your own extension that adds the required API endpoints.

A third option could be to use Power Automate/Azure Logic Apps to create the records in Business Central. But I am unsure about the capabilities and if they suffice for your requirements.

kaspermoerch
  • 16,127
  • 4
  • 44
  • 67