SharePoint OnPremise Farm ID via CSOM c#

Amit Singh Rawat 731 Reputation points
2021-10-25T15:41:02.093+00:00

Hi,
Is it possible to get SharePoint Farm ID via CSOM C#. We get in like SPFarm.Local.ID in SSOM but how can we get in CSOM.

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

Answer accepted by question author
  1. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    2021-10-26T02:14:55.727+00:00

    Hi @Amit Singh Rawat ,
    Per my research, SharePoint CSOM is client side code, it can access only site collection or below level objects. It's unable for us to get farm using CSOM.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.