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
9 replies
Subscribers
5 subscribers
Views
2905 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi, I built a plugin and want to send it a document. So I use the &qu
olivierl
over 11 years ago
Hi,
I built a plugin and want to send it a document. So I use the "@document" type, I get the file Long value in my smart service but there is an error when calling _cs.getInternalFilename(file);
private ContentService _cs;
try {
log("Start");
log("file no "+file);
docPath = _cs.getInternalFilename(file);
log("file " + docPath);
} catch (Exception e) {
log("Error " + e.getMessage() );
log write to a file and I get this
Start
file no 409
Error null
So it seems that getinternal filname throws an error that don't catch.
Thanks for help.
...
OriginalPostID-58406
OriginalPostID-58406
Discussion posts and replies are publicly visible
Parents
0
gartemiou
over 11 years ago
Are you hard-wiring your ContentService?
public YourConstructor(SmartServiceContext smartServiceCtx, ContentService cs) {
super();
this.smartServiceCtx = smartServiceCtx;
this.cs = cs;
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
gartemiou
over 11 years ago
Are you hard-wiring your ContentService?
public YourConstructor(SmartServiceContext smartServiceCtx, ContentService cs) {
super();
this.smartServiceCtx = smartServiceCtx;
this.cs = cs;
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data