Write to file

Discussion in 'Call Flow Designer' started by gustavskii, Aug 7, 2017.

Thread Status:
Not open for further replies.
  1. gustavskii

    Joined:
    Jan 26, 2016
    Messages:
    37
    Likes Received:
    2
    Hello
    I`m trying to create a survey, at the end of which results are written in new file with customers PIN in the name
    But every time the call flow comes to "Write/Read file" component the call disconnects, without creating anything. There are more steps after the file is created as well, but the call drops before reaching them.
    I attached what I have as a screenshot
    Please say what I did wrong
     

    Attached Files:

  2. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,080
    Likes Received:
    77
    Hi @gustavskii,

    The configuration looks good. Just check if you really need the "CreateNew" mode, because that will start the file from scratch for every call, removing anything that you might have written in previous calls.

    In order to troubleshoot this issue, we will need the QueueManager logs. Please take a look at this article:
    https://www.3cx.com/docs/manual/cfd-troubleshooting/

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. gustavskii

    Joined:
    Jan 26, 2016
    Messages:
    37
    Likes Received:
    2
    @edossantos
    I need a separate file for each call
    So is my way the right way to do it?
    Is it possible to have a customer input in the name of the file?
    check my naming is it going to work?
     
  4. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,080
    Likes Received:
    77
    The file name as you're specifying it, will be always the same. If you want to use the value of variable "UserPIN" as part of the file name, then you need to use the CONCATENATE function. For example:
    CONCATENATE("C:\\Users\\alexvoip\\Desktop\\TestIVR\\Survey\\output\\Surveyresultsfor_",callflow$.UserPIN,".txt")

    But this will not cause that the callflow stops there. So there must be something else. Please check the QueueManager log to find out what it is.

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,080
    Likes Received:
    77
    Also, please note that the path needs to be a valid path in the 3CX server. That path seems to be in a user's PC, please ensure that it exists in 3CX server, and also ensure that the LOCALSYSTEM account has write access to that folder, which probably doesn't....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.