|
Rank: Member
Joined: 6/8/2016 Posts: 22 Location: Toronto
|
Is there a way to do this? I've got the e-mail all set up and it'll send one, but it asks for a specific name for the attachment, and the file name is dynamic based upon entries within the mapforce mapping.
Any thoughts?
Adam
|
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 565
|
Do I understand correctly that you're computing the output file name in your MapForce mapping? If so, add a simple string output component to your mapping and return the output filename to it as well as to the actual output file component.
Then, you'll be able to access that simple output value in the mapping step's stdout in your FlowForce Server job.
|
|
Rank: Member
Joined: 6/8/2016 Posts: 22 Location: Toronto
|
Perfect! Thanks much for this :-)
Adam
|
|
Rank: Member
Joined: 6/8/2016 Posts: 22 Location: Toronto
|
I've created an output called "filename" as well as the x12 output, but am not quite able to figure out how to use stdout to get the variable.
Do I place this in an execution step, or can I just use a function to call it in the attachment area?
Would be great help to let me know how best to accomplish this!
Best
Adam
|
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 565
|
Assign the result of the mapping step to some name (e.g., "MyResult").
Then, use the /system/mail/send function to send yourself an e-mail. Set the subject to be '{content(stdout(MyResult))}' and you'll receive an e-mail holding the value you sent to the simple output component.
|
|
guest |