RE: How to set Package Tracking No. using API 2.0
Hello,
I think this will not be easy. Item tracking is done on a related table, so you would have to somehow repeat the logic there, and how would the API call know what Tracking / Lot No. is available. Or is it the API that decides the tracking No. In any case, I would try to automate it in .al code first, to check what logic is needed. And then see if there is a way to call that from API. You would need some development, I think, so also worth seeing if others here on the forum have done something similar before.
You can suggest new API functionality on github.com/.../ALAppExtensions. or Application Ideas on https://aka.ms/BCIdeas , and MS will consider making it available in the future. Until then, I think it will take "a bit" of development to achieve this.
Sorry for not being better help here, I hope others may add their thoughts.