setAttribute SBL-ISS-00120: type - ISS_PROD_DEF; the value is required; identifier -
Hi,
One of my customer is trying to user RCOIS business service to setAttribute. He is using the following code:
function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{
if ( MethodName == "Run1" ) {
try {
var s = TheApplication().GetService("ISS Copy Service");
var inp = TheApplication().NewPropertySet();
var out = TheApplication().NewPropertySet();
var head = "4-7S25SYV";
var item = "";
var io = "7.7 Order Entry Integration Object";
var prod = "1-77R6SZT"
inp.SetProperty("ParentObjectId",head);
inp.SetProperty("IntegrationObjectName", io);
inp.SetProperty( "ProductId", prod ) ;
inp.SetProperty("SearchSpec","[Header.Id] = '"+head+"' AND [Line Item.Root Id] = '"+item+ "'");
s.InvokeMethod("LoadEAI",inp,out);
item = out.GetProperty( "RootId" ) ;
0