AnsweredAssumed Answered

Deleting a Portal Row

Question asked by NewUser318 on Nov 16, 2012
Latest reply on Nov 16, 2012 by philmodjunk

Title

Deleting a Portal Row

Post

     I am writting a script to delete a portal row, however when I use the script it deletes the entire record that contains the portal. I am not sure what I am doing wrong. 

     The portal is an "attachments" portal where users can upload multiple attachments for one record. The delete script is supposed to delete only one portal row which contains an attached file. Here is the script i am writing:

     Set Error Capture [On]

     Show Custom Dialog ['Confirmation"; Get (AccountName) & ",are you sure you want to delete" & Get (ScriptParameter) & "?"]

     If [Get (LastMessageChoice) = 1]

          Delete Portal Row [No dialog]

     End if

      

      

     Has anyone else had this problem? Is there a solution to keep the script from deleting the entire record?

Screen_shot_2012-11-16_at_9.58.34_AM.png

Outcomes