How can i handle dynamic id in Katalon studio

Hello

Currently i am using this code:

String js = '$("#policy_options_6594").modal(“show”);'

WebUI.executeJavaScript(js, null)

Here in this code : policy id = 6594 which is dynamic id when i am creating new policy than every time id is different so how can i manage this in katalon

Provide me some guidance or tutorial link or else video link so i can trouble shoot this issue in my script

So as the ID is dynamic its pretty much useless for testing purposes. Could you share the html of the element so we can try and find a better way of locating this element.