Hi Reece Heald,
You can use the community commons module from marketplace GetGuid function.
https://docs.mendix.com/appstore/modules/community-commons-function-library.
You would have to write a microflow to retrieve this via java action and populate in the NPE entity so that it is accessible to you.
Hope this helps!