This should be into the library, not here. The operations GetRemoteShares... and CreateRemoteShare should take care of setting the value of the link in the OCShare objects they return.