Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
8 replies
Subscribers
5 subscribers
Views
3232 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
We are using "Move Document" smart service to move one of our document
Mahesh Sanga
over 10 years ago
We are using "Move Document" smart service to move one of our document from Temporary Documents folder to some other folder. It is working well if a destination Folder has some value. If destination folder is empty(we are assigning a PV to this smart service parameter) still the smart service is able to move the document to somewhere. But we are not sure where the document has been moved. Has anyone faced this issue before? Even document function returns nothing for "folderName" property. (We are certain that this document is somewhere but we are not sure where it has been moved)
OriginalPostID-141110
OriginalPostID-141110
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 10 years ago
The plug-in comes with the source code; reviewing the source should help you figure out what happens under these circumstances.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Or is it the out of the box one?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mahesh Sanga
over 10 years ago
Thanks Eduardo, I am using the smart service under "Appian Smart Services" category as you can see in the attached screenshot.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Looked into this in detail and:
1. I was able to reproduce the behavior
2. Confirmed the reason is the Long used to represent the Destination folder is defaulting to 0 since you're not assigning a value
3. Therefore the document is moving to folder 0 which is not a place you can access.
4. You can move the document back if you have the PV that has it stored, simply run the Move Document again without an empty Destination.
5. I recommend you add a check for empty PVs in your logic
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
* Just to clarify, it moves it to the content object with id 0 which is the Personal and Teams Community but you can't have files directly there that's why you don't see it there.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
akshayan
Certified Lead Developer
over 10 years ago
Is the source code available for out of the box smart service?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
No, that's proprietary code I thought this user was talking about the Copy Document Custom Smart Service from the Shared Components
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mahesh Sanga
over 10 years ago
Eduardo, is it possible to raise a request to modify this smart service in future to include this validation?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel