When calling a session with a type 3 form (tipcf1101m000 - Product Features by Generic Item), I need to add a new record for a Generic Item that initially has no records (in table tipcf100), using an API command.
Using 'stpapi.put.field' to put the relevant values, followed by either 'stpapi.find' or 'stpapi.change.view', the process simply finds the next record in the table. Hence, when using 'stpapi.insert', an error of 'Record already exists' is encountered. This is because the API is still focused on the Generic Item that already exists.
Therefore, what I need to do is execute a 'start.set' command via the API and to enter the new Generic Item - or I need to find another method of adding a record for a new Generic Item.
Any ideas as to a solution?
Using 'stpapi.put.field' to put the relevant values, followed by either 'stpapi.find' or 'stpapi.change.view', the process simply finds the next record in the table. Hence, when using 'stpapi.insert', an error of 'Record already exists' is encountered. This is because the API is still focused on the Generic Item that already exists.
Therefore, what I need to do is execute a 'start.set' command via the API and to enter the new Generic Item - or I need to find another method of adding a record for a new Generic Item.
Any ideas as to a solution?