Hello,
OnDemand has two api's to get doc ID's, getDocId() and getOpenDocId(). ICN uses getOpenDocId().
the explanation gets a bit tricky. Forgive me for not going into all the details. The important part is if your trying to build a ICN accessible URL you will need to use the getOpenDocId() api. Also note, be sure that the hostname defined to ICN for the CMOD repository matches what you are using in in your custom applications logon() call, otherwise you will get different doc ids and it will not be accessible by ICN.
Thanks,
RR