Create a Flow to Capture Images in the Field Service Lightning Mobile App
- Verify that Lightning Runtime is enabled for flows before building a flow. Find this setting on the Process Automation Settings page in Setup.
- In Setup, enter Flows in the Quick Find box and click Flows.
- Click on the New Flow.
- Drag a Screen element onto the canvas using the flow designer.
- Leave all other options with their default setting and name the screen.
- Select the Add a Field tab, and double-click LightningComponent to add a Lightning component field.
- Click the newly created Lightning component field.
- Enter a name for the field in Unique Name.
- Select force Content:file Upload in the Lightning Component picklist.
- Select the Inputs tab and enter a value for the File Upload Label. This label appears for users in the flow above the image upload component.
- Select Create New Variable for Related Record ID.
- Enter Id in Unique Name,.
- Select Input and Output for Input/Output Type.
- Click OK.
- Click Add Row beneath Related Record ID.
- Select Allow multiple files for Select Attribute.
- Next to your newly created Allow Multiple Files attribute, in the values picklist, now select GLOBAL CONSTANT | $GlobalConstant.True. This setting gives your users the option to upload multiple images.
- Click Save.
- Enter a name for your flow in the window that appears. Remember that the Unique Name that is automatically generated when you name your flow because you need the unique name to connect the flow to the Field Service Lightning mobile app.
- Select Field Service Mobile Flow for Type.
- Click on OK to save your flow.