How to access to Custom Article Attributes ?

I created an attribute called exactid in my shopware (you can see it in the image above). 
I just want to access it in my code because I need to compare it with the id I am receivng from Exact Online. 

So, My quesion is : How can I access this exactid attribute in my code ?

It should be something like : 
$exactId = getArticleAttribute($ordernumber);


Thank you.

Hallo @YoUmars‍,

du kannst etwas wie so mahen:

$articleDetail = Shopware()->Models()->getRepository(\Shopware\Models\Article\Detail::class)->findOneBy(['number' => $orderNumber]);

// dann

$exactid = $articleDetail->getAttribute()->getExactid();


probier es und gib mir Bescheid.



Tel.: +49 755 - 183 990 00 | E-Mail: | Web: