Calling sharepoint integration from expression

Certified Associate Developer

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
    )
)


It however doesn't create the folder. If I go to the integration, enter the same values as test inputs and click test, it does work as expected.

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Associate Developer

    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.

Reply
  • +1
    Certified Associate Developer

    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.

Children
No Data