Hello,
I need to be able to create constant inside a process which will points to a directory.
Use case is as follows:
Sime kind of project is being created. User will be able to upload files to each project. But I need each project to have different folder for files.
So when a user creates the project, the system automatically creates a folder for this project files inside the process which creates the project. First problem is that inside the process modeler after the folder is created there is no way to create a constant for this folder. So I can store the created folder inside the database but after that, when I upload the files, the fileUpload component accepts only constants and I don't have it. referencing the target as [Folder: 432432] from the DB does not work either.
Any workaround ?
Discussion posts and replies are publicly visible
You can simply pass the ID of the folder to the target. Appian will automatically treat it as a folder. If you like, you can add a tofolder(). There is no need to create any constants. How would you store the relation between project and constant?
You are correct, it seems that I have been passing wrong information to toFolder function. I have referenced the Id directly and it works.
As far as the question how I was about to reference the constant. This was something that I was about to research after in case if the first step was ok. But now there is no need to think about it
Thank you.