Getting Attachments into a Document Form

Avatar

Avatar
Validate 1
Level 3
JoshDBoyle-DVzR
Level 3

Likes

2 likes

Total Posts

94 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
JoshDBoyle-DVzR
Level 3

Likes

2 likes

Total Posts

94 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
JoshDBoyle-DVzR
Level 3

19-11-2008

All



I am in need of a way to get various files into a Document Form as attachments. I have a list of documents which contains the files I want to attach and a means to convert this list to a map if necessary.



I am aware of the invokeDDX service but am unable to get it to work. Could somebody please clarify for me how to go getting these files into the Document Form as attachments?

Replies

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

30-05-2013

The error says you're putting a Document variable where it expects a Map (or maybe a list).

Are you sure you're using the right data type?

Jasmin

Avatar

Avatar
Validate 1
Level 2
Don400
Level 2

Likes

2 likes

Total Posts

44 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Don400
Level 2

Likes

2 likes

Total Posts

44 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Don400
Level 2

30-05-2013

Jasmin, yes that's correct.  I should have stated the exection environment.  In Steve's Feb 25 post he stated

Here is my execute script code to convert a list of attachments to a map of attachments which you can then pass to a Render step:

I re-read that a few days ago and thought, "Oh, I wonder if he means the Render step as in the FormsService/renderPDFForm process?"  So I created a map variable (sub-type document) and populated it with a few documents and then attempted to execute the renderPDFForm process with no form and the form data set to the map<document> object.  That's what generated the InvalidCoercionException.

So going back to Steve's Feb 25 post, I can't understand what 'Render' step is being referenced.  I know you can pass a list of documents as an attachment list in the UserServiceV2 'Assign Task' process (but you can't pass a map of documents because the 'Assign Task' Attachments UI only displays lists, nothing else).

As I mentioned in an earlier post above, I have a process that parses a map of documents and generates the DDX as an XML variable which can be passed to the AssemblerService 'Invoke DDX' process (which actually requires a map of documents as one of the inputs).

Message was edited by: Don400 (fixed a typo and made minor readability improvements)

Message was edited by: Don400 (to re-address the post and clean up associated subject references)