Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

How to create ribbon button for sharepoint documents related with another record

$
0
0

Hello,

Recently I created ribbon button with Ribbon Workbench using tips posted here.

This code solved this issue:

function openSharepointDocuments()

{

   Xrm.Page.ui.navigation.items.get("navDocument").setFocus();

}

Now I'm trying to make simillar script, but it has to open documents from related record.

Let me explain: in Opportunity record there's a field which contains link to another entity. This record has its files stored in share point. New ribbon button should work just like that I've made.

I assume, that this script should retrieve ID of this record and somehow connect it with command which opens document tab.

The question is, how to combine getId with tools to open docs tab.

Any help with be appreciated.

Regards,

BB


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>