Reads the custom integer value with the provided name in the consent section of the provided Access Credential.
Throws on type mismatch, and returns undefined if no values are found.
Parameters
accessCredential: DatasetWithId
The Access Credential (Access Grant or Access Request)
field: URL
Returns undefined|number
the custom integer field with the provided name
Example
constaccessRequest = awaitissueAccessRequest({...}, { ..., customFields:newSet([ { key:newURL("https://example.org/ns/customInteger"), value:1, }, ]), }); // i is 1 consti = getCustomInteger(accessRequest, newURL("https://example.org/ns/customInteger"));
Reads the custom integer value with the provided name in the consent section of the provided Access Credential. Throws on type mismatch, and returns
undefined
if no values are found.