Hey Sarath,

That link should be fine.  The user will be redirected appropriately in
their browser to /a/domain.com if needed.

Thanks,
-Vic



On Tue, Jun 7, 2011 at 7:40 AM, Sarath K S <[email protected]> wrote:

> Hi All,
>
> I am listing all the spreadsheets a user has in UI. And on click of
> the record I need to take to the corresponding spreadsheet. So for
> getting the HTML link for the spreadsheets I am using the following
> code.
>
> SpreadsheetService service = new SpreadsheetService(APPLICATION_NAME);
> service.setUserCredentials(userName, password);
>
> SpreadsheetFeed feed = service.getFeed(new URL("http://
> spreadsheets.google.com/feeds/spreadsheets/private/full"),
> SpreadsheetFeed.class);
> List<SpreadsheetEntry> entries = feed.getEntries();
> for(SpreadsheetEntry entry : entries) {
>        System.out.println( entry.getHtmlLink().getHref() );
> }
>
> But the HTML link I am getting is invalid in case of enterprise
> accounts.
>
> The output I am getting is always of the following format
> https://spreadsheets.google.com/ccc?key=spreadSheetKey
>
> Where as the expected output is
> https://spreadsheets.google.com/a/cust_domain.com/ccc?key=spreadSheetKey
>
> Can anyone help me with this?
>
> Thanks & Regards,
> Sarath
>

Reply via email to