Deleting a Portal Row
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]
Has anyone else had this problem? Is there a solution to keep the script from deleting the entire record?