Making a BOM in a drawing template

I am trying to make a BOM in a drawing template and I am having troubles trying to get the bom to link to the correct properties that I would like it to pull from.  Could somebody please help me with this?  Thank youSolidworksDrawings And Detailing