Usecase: Auto start subflow in a Walkthrough Checklist

In a walkthrough checklist, whenever a sub-flow is completed it is ticked to show the sub-flow is completed. If there is a requirement to auto start a sub-flow and achieve the same behavior of a checklist, the sub-flow needs to be started by its projectID prefixed with its checklist projectID . Let's see how we can this can be done in the following steps
If the sub-flow is started with only its projectID, it will be considered as an independent project and not part of the Checklist.

Step 1: Generate project ID of the Checklist project

Step 2: Generate project ID of the sub-flow project

Step 3: Generate a new projectID combining Checklist and sub-flow projectID

Combine the Checklist projectID and sub-flow projectID separated by #.
For example, if the Checklist projectID is 87b73d04-da5d-4ea6-8b71-8fed700157bb and the sub-flow projectID is 33c6abcc-a077-4cae-9c45-33a6c730fba4. The new projectID will be combination of Checklist projectID and sub-flow projectID separated by #. i,e 87b73d04-da5d-4ea6-8b71-8fed700157bb#33c6abcc-a077-4cae-9c45-33a6c730fba4

Step 4: Start the sub-flow

To start sub-flow use the below code snippet
Android
iOS Swift
iOS Objective C
React Native
Cordova (Android)
Cordova (iOS)
Xamarin Android
Xamarin iOS
Ionic
Leap.embedProject("<CHECKLIST_PROJECT_ID>#<SUBFLOW_PROJECT_ID>");
// e.g - Leap.embedProject("87b73d04-da5d-4ea6-8b71-8fed700157bb#33c6abcc-a077-4cae-9c45-33a6c730fba4");
Leap.shared.embedProject("<CHECKLIST_PROJECT_ID>#<SUBFLOW_PROJECT_ID>");
// e.g - Leap.shared.embedProject("87b73d04-da5d-4ea6-8b71-8fed700157bb#33c6abcc-a077-4cae-9c45-33a6c730fba4");
[[Leap shared] embedProject:@"<CHECKLIST_PROJECT_ID>#<SUBFLOW_PROJECT_ID>"];
// e.g - [[Leap shared] embedProject:@"87b73d04-da5d-4ea6-8b71-8fed700157bb#33c6abcc-a077-4cae-9c45-33a6c730fba4"];
LeapReactNative.embedProject("<CHECKLIST_PROJECT_ID>#<SUBFLOW_PROJECT_ID>");
cordova.plugins.LeapAndroid.embedProject("<CHECKLIST_PROJECT_ID>#<SUBFLOW_PROJECT_ID>");
// e.g - cordova.plugins.LeapAndroid.embedProject("87b73d04-da5d-4ea6-8b71-8fed700157bb#33c6abcc-a077-4cae-9c45-33a6c730fba4");
cordova.plugins.LeapiOS.embedProject("<CHECKLIST_PROJECT_ID>#<SUBFLOW_PROJECT_ID>");
// e.g - cordova.plugins.LeapiOS.embedProject("87b73d04-da5d-4ea6-8b71-8fed700157bb#33c6abcc-a077-4cae-9c45-33a6c730fba4");
Leap.EmbedProject("<CHECKLIST_PROJECT_ID>#<SUBFLOW_PROJECT_ID>");
// e.g - Leap.EmbedProject("87b73d04-da5d-4ea6-8b71-8fed700157bb#33c6abcc-a077-4cae-9c45-33a6c730fba4");
Leap.Shared.EmbedProject("<CHECKLIST_PROJECT_ID>#<SUBFLOW_PROJECT_ID>");
// e.g - Leap.Shared.EmbedProject("87b73d04-da5d-4ea6-8b71-8fed700157bb#33c6abcc-a077-4cae-9c45-33a6c730fba4");
LeapPlugin.startProject({projectId:"<CHECKLIST_PROJECT_ID>#<SUBFLOW_PROJECT_ID>"});
The sub-flow can also be launched from notification. You can follow the steps to launch via notification from here. (Note:- Make sure to follow the above steps to generate the new projectID in a combination of checklist and sub-flow projectID)