AnsweredAssumed Answered

Delete Script Help

Question asked by thong127 on Aug 29, 2017
Latest reply on Aug 29, 2017 by techt

Hello Everyone,

 

I have a delete script below

 

If [Get Found Count) = 0]

Halt Script

End If

 

If Get(ScriptParameter) = "Product"

Show Custom Dialog ["Delete" "You are about to Delete " & Products::Item & ". All records for this Product will be irreversibly removed. You should ensure that these Product info have been recorded elsewhere."

Get ( LastMessageChoice ) = 1

Delete Record/Request [With dialog:off]

 

If Get(ScriptParameter) = "Material"

Show Custom Dialog ["Delete" "You are about to Delete " & Material::Name & ". All records for this Material will be irreversibly removed. You should ensure that these Material info have been recorded elsewhere."

Get ( LastMessageChoice ) = 1

Delete Record/Request [With dialog:off]

 

End If

End If

End If

End If

End If

 

If my Parameter is "Material" my script is not working.

 

Any help is highly Appreciated.

 

Thank you.

Outcomes