Forum Discussion

naijacoder's avatar
naijacoder
Copper Contributor
Aug 23, 2018

How to use rest API with PowerShell

Hi All, I have a list and I need to check if a date field column minus 10 days is today send an email.
Is this achievable using rest API with PowerShell on premises?

Thanks in advance
  • Heiko Watz's avatar
    Heiko Watz
    Iron Contributor

    I didn't know how to do it with REST API - but when you use Powershell: Take al look at PNP Powershell

    I use it often to work with SharePoint without coding.

     

     

  • Here is the REST API reference.  I'm not aware of a way to call a function (IE A DateDiff type of function) within the REST call.  Another approach would be to have a calculated field that is evaluated during the REST call.

Resources