SFTP STEP - Flow Action Query

Arnab13
Tera Contributor

I am trying to fetch files from SFTP Server (via Mid Server) and attach them to a particular Data Source in ServiceNow. I am using the "SFTP Step - Copy Files to this Instance" https://www.servicenow.com/docs/bundle/xanadu-build-workflows/page/administer/flow-designer/referenc... 

 

  • I am unsure how to choose a particular Data Source in Target Record, I am using Reference.Data Source as input and using data source.name(transformation string contains name of data source I want the files to get attached). I have attached the screenshots, can you please confirm if that's the way it should be done or otherwise is there another way to do this? Also, the Table comes up a blank.
    Arnab13_1-1735833425927.png

     

    Arnab13_2-1735833457997.png
  • Another query - I want to run the transform map after the file is attached to the data source through the same flow action. How can I do the same?

    Please assist. Thanks in advance!
6 REPLIES 6

@Runjay Patel We're using Flow Designer because using the SFTP method in Data Source needs us to store external password in ServiceNow which is not acceptable by Security for this particular case.

Please can you assist with answering the original queries of this Post. Thanks!

Leyton Dsilva
Tera Contributor

Hi @Arnab13 ,


You need to set the Target Record to the input variable you created - "Data source"
This will automatically populate the Table field.

I have tried it on my instance where I have created a target_record1 variable which is a Reference variable

 

LeytonDsilva_1-1738259945803.png

 

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.