Used wrong return value on shortlink creation. Change to ResourceId which should be correct.
Tested with OpenbravoPos and seems to work