Hello,
Iam new to this platform and i have a use case but facing issues on Receive message event.
the user is sending the Mail with attachements to Appian DL(processmodeluuid12582365452632563263@appian.com) when ever the email triggered with the Subject" MRD Report" it has to check the attachments and save it in the appian folder by using Receive message and also if there are attachments(1 or more) without changing the attachmement names.
could any one help how to create this use case it will be a great help.
appian version 23.2
Discussion posts and replies are publicly visible
I think the "trick" is to just accept the email in the start node. Then make your decisions in a follow up script task. In case you want to cancel further processing, just delete any attachments.
I tried doing it but getting errors.Below im attaching the Process Model which i created,Please could you provide an input for the below.
I did the same but there is some errors which im facing.Could you check my Process mdoel and provide me the inputs.
That code in the script task looks suspicious. Can you share that?
Here it is ,a!forEach( pv!emailAttachments_doc, a!documentSave( document: fv!item, folder: cons!folder ))
There is no "documentSave" function in Appian. What do you tra to do here? Appian will automatically store any incoming document for you in the folder as configured in the process model properties..
Could you give me some code that fits and i do have one question the process model which i shared do it require the Script task?i have already given the Receive message event in the Start node is that enough?
Appian will store the attachments as the process is started. The only thing you might have to do, is to delete them later in case you do not want to process that email.
as i mentioned earlier,my use case.one user will send an email with attachments to my appian DL and needs to check khow many attachments are there and save in the folder.
Sure, but to repeat myself, once that process is started, your attachments are already stored.
I understand that but i just want to know whether im in the right direction or not