RCOIS Service RemoveItem method
Hello,
Need to change Main Product from 250bw to 2000bw; To achive this I am doing removeItem for 250bw then AddItem for 2000bw.
For RemoveItem , I need the path of Main Product, so I am using GetPath function.
Providing below parameter for getpath
psIn.SetProperty("ObjId", newOrderId);
psIn.SetProperty("RootId", sRootItemId);
psIn.SetProperty("IntObjName", sIntObjName);
psIn.SetProperty("Parent Path", IntegrationId);
GetPath(psIn, psOut, oldProdId, oldProdName);
And in GetPath function I have written below code.
bsRCOIS.InvokeMethod("EnumObjects", psInput, psOutput);
var enumObjCount = psOutput.GetChildCount();
for(var i=0; i<enumObjCount;i++)
{
var enumChild = psOutput.GetChild(i);
if((enumChild.GetProperty("Product Id") == ChildProdId) || (enumChild.GetProperty("Name") == Name))