# Map \<PointerItem\> to Organization

**URL:** <https://forum.litium.com/t/map-pointeritem-to-organization/1243>\
**Category:** Questions\
**Created:** [December 4, 2019, 10:31am UTC](https://forum.litium.com/t/map-pointeritem-to-organization/1243 "2019-12-04T10:31:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.marklars](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@anton.marklars](https://forum.litium.com/u/anton.marklars)\
**Post date:** [December 4, 2019, 10:31am UTC](https://forum.litium.com/t/map-pointeritem-to-organization/1243/1 "2019-12-04T10:31:51Z")

</div>

How do i use AutoMapper to map a PointerItem to an Organization?

My pointer is referencing an Organization, but i need to retrieve some data from that particular Organization.

This is what i’ve got so far.

`.ForMember(x => x.Organization, m => m.MapFrom(organization => organization.GetValue<PointerItem>(BlockFieldNameConstants.OrganizationPointer).EntitySystemId.MapTo<Organization>()));`

Should i create a resolver for this case?

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [December 5, 2019, 3:40pm UTC](https://forum.litium.com/t/map-pointeritem-to-organization/1243/2 "2019-12-05T15:40:19Z")

</div>

You could create a resolver that fetches the information for the organization that you really want or you could do it in a builder.

In the latest Accelerator there’s an `ImageModelResolver` you could use as a basis.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [January 2, 2020, 3:40pm UTC](https://forum.litium.com/t/map-pointeritem-to-organization/1243/3 "2020-01-02T15:40:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
