Skip to main content

Hello All,

 

Sharepoint 'File Add' connector expects a relative URL, which means the folder path where the file should be added and the file name, it is usually added like this:

Sharepoint Connector Fileserver Relative URL

 

This works, when I run this it adds a file called abc.txt under test doc folder in sharepoint server. My requirement is to take the filename from request body, a json parameter 'filename' will have the value of filename with extension and I have to save the file with that name, I tried storing that value in a variable and then pass the variable in relative URL but it doesn't work, it creates the variable name in sharepoint server:

 

capture.jpg

 

What I mean to say instead of replacing the value of vars in the URL, it goes a create a file called '# [vars.vari]' in sharepoint server, how to actually pass on the value of filename in this URL fragment.

 

3 respuestas
  1. 26 may 2019, 12:26

    Figured it out. It has to be expressed like this:

     

    Inside expression mode:

    'folder path' ++ payload.filenamewithextension

     

    Example

    # ['testdoc/Unrestricted/' ++ payload.filename]

    In my example I am passing value to filename from request.

0/9000