function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Richie DRichie D 

Programmatically getting a Sites information

Hi,

 

Does anybody know if :-

1. It is possible to get the list of sites for a given organization and

2. Whether it is possible to get the details out of them.

 

I'd like to provide a button (or link) within SFDC to allow a user to go directly to a 'sites' siteURL.

 

I know there is the $Site global variable, this is only available within an actual 'sites' site but it has the data available to it.

 

Thanks for any help.

Rich. 

Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent
This is a feature being piloted at current. Check out this post: http://community.salesforce.com/sforce/board/message?board.id=sites&thread.id=966

All Answers

Edwin VijayEdwin Vijay
Check your WSDL.... i think there should be a Sites object.. ul find all information in the WSDL
Richie DRichie D

Thanks for your reply Edwin1,

 

I see in the metadata wsdl that there is a CustomSite object but I don't think this is available to me directly within apex (or visualforce). Is this correct?

 

Is there a way to do this directly within SFDC??

 

R. 

Edwin VijayEdwin Vijay

You are right Richie, i thought there would be a object... i dint find any..:smileysad:

 

Thanks,

Edwin

BulentBulent
This is a feature being piloted at current. Check out this post: http://community.salesforce.com/sforce/board/message?board.id=sites&thread.id=966
This was selected as the best answer