Hi,
We are investigating multicompany support in epicor.
So, we will eventially have 2 Companies setup in epicor (we shall call them C1 and C2)
Currently, in our dev environment, we are in the process of updating our Parts to be Global (which we set in C1)
Afterwards, we ‘integrate->link Part’ in C2.
This works absolutely fine when I do this manually in Epicor.
However, I am trying to automate this process. I have a lot of parts that already exist I need to mark as global and to link. Moving forward, we want this to (also) be done automatically when we add new parts. This is likely to be done through Service Connect but I wanted to get the process correct, first.
I ran a trace and it seems the following BO methods are called:-
- Part BO method ‘ChangePartGlobalPart’ (which is what is called when setting Part as global)
- Part BO method ‘LinkGlbPart’ (which would be in C2, to link it)
I have tried 2 approaches to calling ChangePartGlobalPart and it returns with error 400, using:-
- the Rest API (v2) Custom method
- I passed the json data correctly
- using Epicor functions (to also call GetPartGlobalPart)
- In the function, I called GetByID (to store the tableset) before calling ChangePartGlobalPart
Both return the same error:
“Part criteria not available.”
I was wondering if anybody else has experienced this before?
Once I have past ChangePartGlobalPart, I will then need to call LinkGlbPart (and maybe something else before it)
Anyone with advice or suggestions is welcome.
Thanks,
M