Hello @Pratiksha KC ,

Is your variable set and catalog item in the same scope? If it is the same scope, then it should work.

If my response was helpful, please mark it as correct and helpful.
Thank you.