Skip to main content
January 26, 2024
Solved

a!moveDocument service is not working

  • January 26, 2024
  • 2 replies
  • 0 views

Hello, 

I am saving the uploaded files to a local variable and wanted to push to a folder. used a!moveDocument service 

a!moveDocument(document:local!uploadedDocs,destination:(constant pointing to folder),                              

This does not do anything. Can you please help 

    Best answer by harshitb6843

    You must have specified a target folder in your fileUploadField() so when you submit the form/task, your document gets uploaded in that folder. Not before that. So you can use this smart service after the document gets uploaded, which is after the form gets submitted.

    There is a Process Smart Service version of it too that you can use straight after the user has submitted the task. 

    2 replies

    stefanhelzle0001
    Brainy
    January 26, 2024

    Not without more details. A document is only in a valid state after a submit action. And I need a way more detailed explanation of what is going on.

    In a recent episode of my Appian podcast we discuss how to get great answers here: https://appian.rocks/2023/12/20/episode-13-how-to-get-your-questions-answered/

    harshitb6843
    January 26, 2024

    You must have specified a target folder in your fileUploadField() so when you submit the form/task, your document gets uploaded in that folder. Not before that. So you can use this smart service after the document gets uploaded, which is after the form gets submitted.

    There is a Process Smart Service version of it too that you can use straight after the user has submitted the task.