SetupFolderAction
This method calls the setupFolder method of ClientApi. It assumes that the named credential to use is to be found in the “SharePoint Settings” Custom Metadata type. The Site Id and Document Library Id are assumed to come from the SharePoint Object Settings record that corresponds to the objectfor the recordId that was passed. For simplicity, error handling is not in this example. Production usage should have error handling.