{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":21386,"path":"integrate-applications/integration-hub/sample-flow-utility-action.md","title":"Build a flow using the Utility Actions spoke actions","bundle":null,"doc_type":null,"release":"australia","body":"\n# Build a flow using the Utility Actions spoke actions\n\nCreate a flow in Workflow Studio using the Utility Actions spoke actions to create two files; one for incident records and other for user records, and zip these two files.\n\n## Before you begin\n\nRole required: admin.\n\n## About this task\n\nThis sample flow demonstrates using the Utility Actions spoke actions to create files. You can configure the flow as per your requirement.\n\n## Procedure\n\n1.  Navigate to **All** &gt; **Flow Designer** &gt; **Designer**.\n\n2.  Create a flow.\n\n    For more information, see [Building flows](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/build-workflows/flows.md).\n\n3.  In the flow, add these spoke actions or flow logics:\n\n    1.  Look Up Incident Records action to retrieve the incident records.\n\n    2.  Begin File action to create a file that will contain the incident records.\n\n    3.  For Each flow logic to apply the Append to Delimited File action to the list of incident records.\n\n        \\[Omitted image \"append-delmt-utility.png\"\\] Alt text: Append to Delimited File spoke action\n\n    4.  Build File action to add rows.\n\n        Each incident record is added as a row in the file.\n\n        \\[Omitted image \"build-file-utility.png\"\\] Alt text: Build File spoke action\n\n    5.  Perform similar steps to retrieve records from the User \\[sys\\_user\\] table.\n\n        \\[Omitted image \"user-records-utility.png\"\\] Alt text: Retrieve user records\n\n    6.  Begin Zip action to build the ZIP file for the incident and user records.\n\n    7.  Add File To Zip action to add a file containing the incident records to the ZIP file.\n\n        \\[Omitted image \"add-file-zip-utility.png\"\\] Alt text: Add File To Zip action\n\n    8.  Add File To Zip action to add file containing the user records to the ZIP file.\n\n        \\[Omitted image \"add-file2-utility.png\"\\] Alt text: Add File To Zip action\n\n    9.  Build a Zip action to create the ZIP file containing the incident and user records.\n\n        \\[Omitted image \"build-file-utility.png\"\\] Alt text: Build File action\n\n4.  Save, test, and publish the flow to use it.\n\n    \\[Omitted image \"flow-utility.png\"\\] Alt text: Sample flow using the Utility Actions spoke actions\n\n\n"}}