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 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JoyZ 18,111 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


Your answer

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