In this question a guy states that
that at least part of the key is a Base64 encoded string of the columns that make up the primary key
so the first part of the key is some kind of salt or timestamp that is used to avoid overwriting record when updating through exposed page.
There is no function in Nav that allows to calculate web-service key for certain record and no way to use this key in C/AL to fetch record.
If your intention is to use exposed codeunit to both read and write you can use XML port
with Direction
property set to Both
as the parameter of procedure to read and update record in certain table(s). Of course in that case you have to use all primary key fields in XML Port to identify record.