Automation of Creating global parts

Hello, i am trying to automate the creation of unlinked parts on the GlbPart table where the field PartNum is blank using a function to do the calls. has anyone successfully done this? any advice on how to make this work

So if anyone else finds this and wants to build something similar… the workflow is as follows:

GetGlbPartList

↓

PreLinkGlbPart

↓

GetPartForLink

↓

LinkGlbPart

↓

UpdateAfterGlbPartLink

where i was getting stuck, is for the call of the GetGlbPartList, the format for the call is PartNum`GlobalCompany