<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Save Document into New Folder from Integration Result</title><link>https://community.appian.com/discussions/f/integrations/39641/save-document-into-new-folder-from-integration-result</link><description>Hi all, 
 I have an integration that returns documents, and I am looking to have the document saved into a new folder that is created for each document. I am running into this error: 
 
 
 I&amp;#39;d appreciate any advice or thoughts. Would this be better fit</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Save Document into New Folder from Integration Result</title><link>https://community.appian.com/thread/151130?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2025 06:44:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68205d27-fafd-434b-8516-8a17cfe7bf43</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;In the &amp;#39;Save Document In&amp;#39; expression box the expression should return a folder object. Currently you are doing a!save() which returns a reaction tree instead of a folder. As a!createFolder() can be executed within saveInto or WebAPI only you should use a process model for your use case. a!createFolder() won&amp;#39;t execute properly here.&amp;nbsp;&lt;br /&gt;In the PM create a folder and then move your doc in it. For this integration use a temporary folder to store the document in.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save Document into New Folder from Integration Result</title><link>https://community.appian.com/thread/151128?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2025 18:33:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61958bd3-930c-4300-8a11-e616aad4c17c</guid><dc:creator>Shubham Aware</dc:creator><description>[quote userid="160049" url="~/discussions/f/integrations/39641/save-document-into-new-folder-from-integration-result"]Would this be better fit for a PM, if so, what would be the recommended path of approaching this?[/quote]
&lt;p&gt;Process Model is best - It provides proper transaction handling, built-in error recovery, and cleaner separation between folder creation and document writing using dedicated smart services.&lt;br /&gt;In the process model, first use an integration object to store the document in a temporary folder. Then, use the &amp;quot;Create Folder&amp;quot; smart service to create the desired folder and the &amp;quot;Move Document&amp;quot; smart service to move the document from the temporary folder to the new folder. &lt;br /&gt;Alternatively, if using Appian&amp;#39;s document record type with your main record, you can leverage Appian&amp;#39;s auto folder creation feature for greater flexibility and automation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save Document into New Folder from Integration Result</title><link>https://community.appian.com/thread/151127?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2025 18:20:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0aa102ec-d2f1-437b-be55-d983f167dbe5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You will have to create the folder beforehand, or store the file to a temporary folder and then move it later on.&lt;/p&gt;
&lt;p&gt;May I ask why you want to create a folder for each file? Do you have any specific requirements in terms of security?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>