I have a Sharepoint connector defined and authenticated with an integration that uses it. It is set to create a folder. I am trying to use it in an expression like so:
a!localVariables( local!user: rule!HR_getUserFromUuid(ri!uuid), local!employeeFolder: upper(user(local!user, "firstName")) & " " & upper(user(local!user, "lastName")), rule!HR_SharepointCreateFolder( folderName: local!employeeFolder, rootPath: cons!HR_SHAREPOINT_EMPLOYEES_FOLDER ) )
Discussion posts and replies are publicly visible
No, It will not work inside an expression. It will either work in a integration node from the process or executing this rule in a saveinto parameter.
Querying Data versus Modifying Data
Some documentation here: https://docs.appian.com/suite/help/24.1/functions-side-effects.html
I will just add this for future readers:This example does not throw an error and you have no static analysis telling you that you shouldn't use the integration in an expression which is why you have to manually test to know for sure (in my case I had to look for the specific folders on my Sharepoint). This is poor development experience and a mistake on Appian's end since this kind of silent errors can become quite tricky to uncover in large applications.