Skip to main content

Hello,

I’m trying to duplicate parts to create them into another site (contract) of my company.
It’s part of a workflow which automatize unballasting between our main site to sub site.
I tried to use CopyPart projection in API calls (type call or create), InventoryPartHandling, but it doesn’t work.
The function (invoke) DefaultCopy used from the inventory part webpage to “duplicate” is not available in projection API so I don’t know how to process.
Right now, I fetch the entity element I need from API call then I create a new entity element with it.
But for inventory part for exemple, I got 90+ fields to fill.
I don’t think this is the good solution and a real copy function should exist, but can’t find it, or make it work (Copypart.svc) ?

Thank you

Hi ​@REOGIRARD 

would you be able to share any error messages you get when you try to use CopyPart projection in API calls (type call or create), InventoryPartHandling ?

 

for the filling of 90+ fields, in the API task there is an option of Only Explicit Parameters. once unchecked allows to pass in fields to the api task implicitly to the API task given the name of the variable in the execution matches that of the input parameter. 

ref: IFS API - Technical Documentation For IFS Cloud


Hello ​@kamnlk 
I don’t get any error after the call
I chosen CopyPart projection => copypartset 

I added debug but looks like there is no error :
 


The last operation in the loop (Read Inventory Part) returns empty collection means the part has not been copied
 



I want to use a copy function instead of the create new entity function because I need the Part to be the same as the original, for a different site.
This is why I must not check “Only Explicit Parameters” option if I make a bloc CREATE Inv Part instead of COPY PART.

Any idea what’s wrong ?

Thank you


So I found the page using the CopyPartProjection and it seems to not fill my requirements as it create a new Master Part, which already exists.
I just need to copy inventory part / purchase part here
Gonna check in dedicated projections 

 


Hi ​@REOGIRARD 

would you be able to share any error messages you get when you try to use CopyPart projection in API calls (type call or create), InventoryPartHandling ?

 

for the filling of 90+ fields, in the API task there is an option of Only Explicit Parameters. once unchecked allows to pass in fields to the api task implicitly to the API task given the name of the variable in the execution matches that of the input parameter. 

ref: IFS API - Technical Documentation For IFS Cloud

Hello, Copy Part is the good projection for my use case, I was not using it properly into my workflow but I solved it checking http calls of web app, thank you for your support