# REST API  - Artikel  (propertyValues)

**URL:** <https://forum.shopware.com/t/rest-api-artikel-propertyvalues/34908>\
**Category:** Programmierung\
**Created:** [29. Februar 2016 um 12:42 UTC](https://forum.shopware.com/t/rest-api-artikel-propertyvalues/34908 "2016-02-29T12:42:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thethe](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@thethe](https://forum.shopware.com/u/thethe)\
**Post date:** [29. Februar 2016 um 12:42 UTC](https://forum.shopware.com/t/rest-api-artikel-propertyvalues/34908/1 "2016-02-29T12:42:59Z")

</div>

Hallo Zusammen,

ich stehe vor dem Problem das die ID der propertyValues wechselt je nachdem welche Eigenschaften dem Artikel zugewiesen wurden - sprich  
manchmal finde ich eine Eigenschaft unter&nbsp;$decodedResult[‘data’][‘propertyValues’][‘7’][‘value’], bei einem anderen Artikel steht diese Eigenschaft in  
$decodedResult[‘data’][‘propertyValues’][‘4’][‘value’]…Wie löst ihr das?

Viele Gruesse

P.

---

<div class="post-metadata">

**Author:** ![thethe](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@thethe](https://forum.shopware.com/u/thethe)\
**Post date:** [29. Februar 2016 um 14:10 UTC](https://forum.shopware.com/t/rest-api-artikel-propertyvalues/34908/2 "2016-02-29T14:10:54Z")

</div>

Habe es so gelöst:

```
 foreach ($array as $subarr) {if ($subarr['optionId'] == '35') { $my_value = $subarr['value']; break;}}

```

&nbsp;
