Get linked item value in configurator event script
We have sample code below that write to a xml but i need to pull particulare linked item value from the business service bs. Please advice how ?
function Cfg_InstInitialize (RootProduct)
{
var bs = TheApplication().GetService("Remote Complex Object Instance Service");
var inp = TheApplication().NewPropertySet();
var out = TheApplication().NewPropertySet();
var rootid = GetInstanceId();
inp.SetProperty("ClearValues","N");
inp.SetProperty("GetAllValues","Y");
inp.SetProperty("RootProductId","8SIA-7Z3QH");
bs.InvokeMethod("GetLinkItemValues",inp,out);
var bs2 = TheApplication().GetService("EAI XML Write to File");