# Part Parent

**URL:** <https://www.epiusers.help/t/part-parent/60297>\
**Category:** Epicor ERP 10\
**Tags:** customization\
**Created:** [September 30, 2019, 4:08pm UTC](https://www.epiusers.help/t/part-parent/60297 "2019-09-30T16:08:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 4:08pm UTC](https://www.epiusers.help/t/part-parent/60297/1 "2019-09-30T16:08:38Z")

</div>

I have a part’s revision checked out through the engineering workbench. I have a PartNum and a RevisionNum of the checked out part. I need to grab the parent part and it’s site. Can’t seem to find an endpoint to do such. Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![Banderson](https://www.epiusers.help/user_avatar/www.epiusers.help/banderson/32/50875_2.png) [@Banderson](https://www.epiusers.help/u/Banderson)\
**Post date:** [September 30, 2019, 4:10pm UTC](https://www.epiusers.help/t/part-parent/60297/2 "2019-09-30T16:10:20Z")

</div>

You’re going to need more detail about what you are trying to do. BAQ? REST? Something else?

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 4:11pm UTC](https://www.epiusers.help/t/part-parent/60297/3 "2019-09-30T16:11:14Z")

</div>

I would love to do REST but I don’t think we have it configured?

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [September 30, 2019, 4:12pm UTC](https://www.epiusers.help/t/part-parent/60297/4 "2019-09-30T16:12:52Z")

</div>

> [@bradberkobien](#):
>
> REST but I don’t think we have it configured?

You don’t have REST setup according to @hkeric.wci. But you should get it working cause it is awesome.

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 4:13pm UTC](https://www.epiusers.help/t/part-parent/60297/5 "2019-09-30T16:13:43Z")

</div>

Where’s the API located? and I’d like to set it up. What’s the appx amount of time to set it up?

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [September 30, 2019, 4:14pm UTC](https://www.epiusers.help/t/part-parent/60297/6 "2019-09-30T16:14:32Z")

</div>

Epicor SaaS MT is what your Profile says but that’s not true right?  
@hkeric.wci they MT? No way!

If you are MT you are SOL Epicor has to do it for you

---

<div class="post-metadata">

**Author:** ![Banderson](https://www.epiusers.help/user_avatar/www.epiusers.help/banderson/32/50875_2.png) [@Banderson](https://www.epiusers.help/u/Banderson)\
**Post date:** [September 30, 2019, 4:16pm UTC](https://www.epiusers.help/t/part-parent/60297/7 "2019-09-30T16:16:52Z")

</div>

How about you just start with a BAQ. No matter what you do, you’re going to need to understand the schema.

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 4:30pm UTC](https://www.epiusers.help/t/part-parent/60297/8 "2019-09-30T16:30:23Z")

</div>

Here’s the SQL query I ran to figure out the solution to my problem…

```auto
select pr.PartNum, pr.plant, pr.RevisionNum from ERp.Part p
inner join Erp.PartRev pr on p.PartNum = pr.PartNum
where p.PartNum = 'PART-NAME'

```

I was checking out a Revision for the part and just needed it’s site so that I can pass it down to mtl parts.

---

<div class="post-metadata">

**Author:** ![hkeric.wci](https://www.epiusers.help/user_avatar/www.epiusers.help/hkeric.wci/32/52019_2.png) [@hkeric.wci](https://www.epiusers.help/u/hkeric.wci)\
**Post date:** [September 30, 2019, 4:45pm UTC](https://www.epiusers.help/t/part-parent/60297/9 "2019-09-30T16:45:59Z")

</div>

> [@josecgomez](#):
>
> Epicor SaaS MT is what your Profile says but that’s not true right?  
> @hasokeric they MT? No way!

Yeah they are on-prem not MT SaaS.

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 4:50pm UTC](https://www.epiusers.help/t/part-parent/60297/10 "2019-09-30T16:50:11Z")

</div>

I copied Haso’s intro. That’d explain it

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 4:52pm UTC](https://www.epiusers.help/t/part-parent/60297/11 "2019-09-30T16:52:40Z")

</div>

```auto
select p.Company, p.PartNum, pp.plant as PartRevPlant from ERp.Part p
inner join Erp.PartPlant pp on p.PartNum = pp.PartNum
where p.PartNum = 'wagonwheel' and p.Company = '01800000'

```

Why is this pulling back all available Part Plants and not just ones assigned?

![image](https://epiusers.help/uploads/default/original/3X/1/a/1a4ac42074687a24158a833e3caff62be7c7eac3.png)

---

<div class="post-metadata">

**Author:** ![Banderson](https://www.epiusers.help/user_avatar/www.epiusers.help/banderson/32/50875_2.png) [@Banderson](https://www.epiusers.help/u/Banderson)\
**Post date:** [September 30, 2019, 4:57pm UTC](https://www.epiusers.help/t/part-parent/60297/12 "2019-09-30T16:57:09Z")

</div>

If you go to part entry for that part number, which sites do you see there?

 ![image](https://epiusers.help/uploads/default/original/3X/0/d/0db8bb89555355248273a9e51d01af140358c0fe.png)

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 4:59pm UTC](https://www.epiusers.help/t/part-parent/60297/13 "2019-09-30T16:59:32Z")

</div>

![image](https://epiusers.help/uploads/default/original/3X/8/d/8db310aedf2b9e70d34b4c9cf970505f5e0a978e.png)

---

<div class="post-metadata">

**Author:** ![hkeric.wci](https://www.epiusers.help/user_avatar/www.epiusers.help/hkeric.wci/32/52019_2.png) [@hkeric.wci](https://www.epiusers.help/u/hkeric.wci)\
**Post date:** [September 30, 2019, 5:03pm UTC](https://www.epiusers.help/t/part-parent/60297/14 "2019-09-30T17:03:13Z")

</div>

Its pulling in more because in your join you are not joining on the Company.

However, I don’t think that is what you want… You might be more interested in your scenario with the Site: drop-down on the Revision Tab (which is different than PartPlant).

```sql

-- Also Check if you need to use pr.AltMethod
SELECT pr.Company, pr.PartNum, pr.RevisionNum, pr.Plant, * FROM Erp.PartRev pr WHERE pr.Company = '01800000' and pr.PartNum = 'wagonwheel' and pr.RevisionNum = 'A'

```

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 5:45pm UTC](https://www.epiusers.help/t/part-parent/60297/15 "2019-09-30T17:45:12Z")

</div>

Hmmmmmm I’m going to have to figure out how to grab it from the screen in Epicor. Where can I find a list of options for EpiDataView’s

---

<div class="post-metadata">

**Author:** ![anon75023439](https://www.epiusers.help/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@anon75023439](https://www.epiusers.help/u/anon75023439)\
**Post date:** [September 30, 2019, 5:49pm UTC](https://www.epiusers.help/t/part-parent/60297/16 "2019-09-30T17:49:06Z")

</div>

Check the object explorer.

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 5:50pm UTC](https://www.epiusers.help/t/part-parent/60297/17 "2019-09-30T17:50:13Z")

</div>

I found them

 ![image](https://epiusers.help/uploads/default/original/3X/6/3/630799dd09735697277fd7bbee0230b80dec15cc.png)

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 5:50pm UTC](https://www.epiusers.help/t/part-parent/60297/18 "2019-09-30T17:50:27Z")

</div>

thank you!

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 6:46pm UTC](https://www.epiusers.help/t/part-parent/60297/19 "2019-09-30T18:46:34Z")

</div>

I need to grab these two plants somehow based on the partnum

 ![image](https://epiusers.help/uploads/default/original/3X/e/8/e89ecfbdf6ec22f91b7000fffe4a13ba545585f4.png)

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 30, 2019, 6:48pm UTC](https://www.epiusers.help/t/part-parent/60297/20 "2019-09-30T18:48:10Z")

</div>

@josecgomez I was trying to extract and get the data through an EpiDataView (ECORev)

[Next page](https://www.epiusers.help/t/part-parent/60297.md?page=2)
