The best way to save a global variable with selectable value from content browser in CPP?

I have a next issue. While I developed Inventory Systems in Blueprints, I used to create Data Tables with database of my items. After I created a Blueprint Function Library and added the function GetInventoryDatatable. I used this function for giving an ability to easy switch between any Databases, and it was easy to open it in Editor and select one from content browser. Now I am writing Inventory System using CPP. And I don’t know how to provide me with this ability of easy swapping my Data Table. What I am looking for is the way to set used Data Table and easily get this asset in CPP. For instance I could do it using Actor. Create the special actor class, put it in the world, and set the value using it, but in this case, if Item Actors would be placed before this special actor, they couldn’t set their own models by ID. So, I need to find something more correct.

Everything you can do in blueprints, you can do in C++. Try inspecting the source code of the methods you were using in blueprints.

try looking into data assets