Spent a long time to research on this issue. There is no way to get the remoteURL from an idp Document instance.
However, this can be achieve with some little tweaks.
Let's say the process which geneates the document output as Process1
Create another process (say Process2) which invokes the Process1 internally.
Return only the remoteURL part of the response XML as output.
Let the users invoke Process2 and receive the remoteURL directly as output.
Pardon me if there is a better way of doing this.
Thanks for your reply.
I tried your suggestion, but the result from the internal call is still a document object.
How do I return just the remoteURL part of the response to the calling process?
I forgot to mention that you must invoke the real process through SOAP endpoint (using web services activity).
I have created a sample process for you. Let me know your email to share the sample LCA.