Could any one help me out.
I have a created a custom button in the tridion ribbon.(Item View)
In a given page we will be having the 'Component Presentation' and 'Target Group'
Now I need to get the tcm-id of the Component Presentation and the selected Target Group on click of the Button(created in step1).