2 Replies Latest reply on Jul 2, 2009 5:57 PM by jamie.hunt

    Delete all records in Portal

    jamie.hunt

      Title

      Delete all records in Portal

      Post

      Hey guys, I'm pretty stuck, I've searched online but cant find the answer.

       

      I have a layout showing two portals. The layout shows related records from a table called TotalTicket. There are two portals on this layout, one showing related services and the other showing related retail. I need to write a script that will delete all records showing in the 2 portals and then delete the Total ticket itself.

       

      So far I have named a field in each portal. One called "serviceportal" the other "retailportal".... and in the script

       

      Go to object "Serviceportal"

      Delete related record

      go to object "Retailportal"

      Delete related record

       

      This only deletes the first record, I need it to delete all records shown in the portal.

       

      I hope someone can help