Hi, I built a plugin and want to send it a document. So I use the &qu

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
  • Well, I have not much more to share, my process have only 2 task, user input task and my mart service. User input select a 'document' which is an entry point for the smart. This seems to be ok because a get a "long" that the smart can write to a file to check. After is this cs. line which doesn't return unless with catch (exception e) with e.getmessage empty. Is there a way to check which file the long value is pointing to ?
Reply
  • Well, I have not much more to share, my process have only 2 task, user input task and my mart service. User input select a 'document' which is an entry point for the smart. This seems to be ok because a get a "long" that the smart can write to a file to check. After is this cs. line which doesn't return unless with catch (exception e) with e.getmessage empty. Is there a way to check which file the long value is pointing to ?
Children
No Data