I covered this exact issue in the article linked. One way is to use an Attr Map where the items…