Hi All i have a external suitelet and iam trying t...
# suitescript
s
Hi All i have a external suitelet and iam trying to remove a child record from parent child custom record and iam getting error like items you have requested in the record have been deleted Can any one help how to overcome this issue Thanks
b
What role is the suitelet set to run as
s
adminstrator
b
Can the record be removed in the ui and the internal suitelet using administrator?
l
If you're removing more than one child record, be sure to remove the highest index first
s
yes it getting removed using ui and internal suitelet
and iam removing single child at once
b
there goes the normal trouble shooting steps
is there anything unusual like scripts or workflows deployed to the record?
or missing preferred forms?
what does the suitelet code look like
s
There are no other scripts and workflows running and we have standard form (not customized) is preferred
Copy code
loadobj.removeLine({ sublistId:'recmachcustrecord_parent', line:k-1 });
record.delete({ type:'customrecord_pd_wish_list', id:wishlistid });
b
those 2 pieces of code look unrelated
you can try using record.detach
which is equivalent to the remove link
s
Thankyou battk In case of delete also i am getting same error My concern is there any restrictions for external suitelet