SharePoint OnPremise Farm ID via CSOM c#

ASR 671 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.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,565 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,655 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,569 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 30,906 Reputation points Microsoft Vendor
    2021-10-26T02:14:55.727+00:00

    Hi @ASR ,
    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