SharePoint 365 || Conditional Formula || CSOM

Keith Woollard 1 Reputation point
2021-08-31T17:15:53.107+00:00

Hi Microsoft Comunity.

Does anyone know if it it possable to update a SharePoint column progamiatically ( maybe in CSOM or Graph) so i can insert a conditional formula.

https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/list-form-conditional-show-hide

Please note, I allready know how to add conditional Formating... ( how to color columns depending on things)

https://www.sharepointdiary.com/2019/01/sharepoint-online-apply-column-format-using-powershell.html

But i need to be able to add a conditional formula ( how to show columns depending on things) eg

=if([$Category] == 'Product Management', 'true', 'false')

Any help would be apreciated.

Thanks

Keith.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,448 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 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,810 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JoyZ 18,056 Reputation points
    2021-09-01T02:09:32.637+00:00

    @Keith Woollard ,

    As far as I know, we cannot programmatically insert conditional formulas in list/library forms.

    We recommend that you set it in the UI interface.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    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

  2. Keith Woollard 1 Reputation point
    2021-09-01T06:44:26.13+00:00

    Brillant thanks Julie... at least i know to stop looking..

    Thanks again.

    Keith