Hi, I'm new to appian, and most probably this is a obvious one, well im strugulling.
So I have a form, where I want to upload 3 different documents, therfore all of them are saved into document_cdt using the same id.
On the interface all looks fine, looks like its saving:
Therefore, when a really try to test its not saving the data into document_cdt:
Is it because I have something worng here:
should I add the documentationAppianID ?
Discussion posts and replies are publicly visible
What does your process data look like after you submit your form where you've uploaded the files?
I'm unclear why you would think you need to pass a value into "document_cdt" in the Related Action call. Generally that data would start out as an Empty Set and then be populated by your on-form logic when the documents themselves are uploaded. Unless I'm missing something subtle, the code in your top screenshot looks essentially correct.
Therefore we need more detail into why you say:
victoriab0001 said:its not saving the data into document_cdt
so if I check the process history I have :
but then the process variables :
Your interface code is set to save any changes by appending [new] entries to the document_cdt rule input. That basically means when you initially pass in an empty entry (but with Created By / Created Date values pre-set), you'll end up with a blank entry and then added entries appended after that. So you almost certainly need to remove the pre-created document_cdt entry from your related action call if you're going to just append new entries to that PV instead of altering the existing entry.
I'm unsure how you come up with the final screenshot - is this after a WTDS node? Does the node have the "multiple" value properly set for the CDT? If it's accidentally set to "single" (i.e. "multiple" is not checked), then it would write ONLY the first entry (which you didn't actually commit any Doc IDs to) and then, i assume, write that value back to the PV, wiping out the other ones you ended up adding.
worked, many thanks for your help
Cool, thanks for confirming. When you get a chance also please verify any answer(s) you found helpful.