How to delete incidents using ROQL
Summary
Attempting to use this code snippet to delete incident records?Content
Hi , I was reading through the ConnectPHP guide for Oracle 18A , I want to be able to delete records using this code snippet. Would I run this from the customer portal somehow? Or am I able to log into the CLI using OPC ?
Version
18ACode Snippet
try{ $ROQL = $RNCPHP."\\ROQL"; $query = "delete from contact ORDER BY id desc limit 100;delete from contact ORDER BY id desc limit 100;"; for( $i = 0; $i<100; $i++ ) { query = "delete from contact ORDER BY id desc limit 100; $roql_rs = $ROQL::query( $query ); $ConnectAPI::commit(); } } catch (Exception $err ) { echo $err->getMessage(); }
Tagged:
1