Portal SharePoint Integration User direct document sharing link.
Lately, I was trying to research the way SharepointLink for Portal users is generated and failed badly.
Maybe some of you have faced a similar issue and will be able to help me out with this one.
What I would like to do is to generate a direct link do to document for the portal user and for example paste this link in the email sent to the customer. When I copy a link from portal the URL looks something like this <portal-base-url>/_entity/sharepointdocumentlocation/<some guid>/<another guid>?file=<file name>.
What troubles me is to find where those GUIDs come from. My obvious guess that it's the ID of document location from sharepointdocumentlocation entity, but wasn't able to find any matches this way. I'm getting clueless so any help.
I attach the screen below to give you a reference to what I'm talking about