Hi Krissy,
I am glad you asked this question as it can be a bit tricky to figure out the easiest path here, but not terribly difficult to handle once you have a few tips.
The easiest explanation of this will come from seeing an example, so I've attached a Fusion 2.0 Scenario Blueprint. You can easily create a new scenario and import this, setup your connection and swap out relevant IDs to see this all work.
Essentially the steps are to
- Read information about the task in question (whether from a previous search or read record) and also include information from the "objectCatgories" collection (these are custom forms attached).
- Once you've done that, add a router that will evaluate whether a specific custom form ID is included in that collection. You'll note the advanced usage of the map function to evaluate a simple list of IDs that are nested within a list of objects.
- If it is not included, take it down a path to add a custom form. This last last step includes use of the "Custom API Call" module, but we will likely add to a standard module because this is a common use case and question. Note: you can change out the "assignCategory" action with "unassignCategory" for use cases where you want to remove a custom form.
I've also include a picture of the scenario. Let me know if you have any questions.
Note: when using this blueprint, be sure to swap out the task ID (for a task you want to test with), and the custom form ID (for the custom form that matters to you) in both the filter and the last step. Cheers.
