Hi @jansi rani krishnan ,
you can use these two values as it is in the script. Each value is the ID of a relationship
$WIhasAttachMent = "aa8c26dc-3a12-5f88-d9c7-753e5a8a55b4" ``= RealtionshipClass = WorkItem has Attachment
$CIhasAttachMent = "095ebf2a-ee83-b956-7176-ab09eded6784"
= RealtionshipClass =ConfigItem has Attachment`
Don't worry about getting the right relationship class with
Get-SCSMRelationshipClass. The Ids should be the same in every SCSM environment and SCSM version.
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)