adding custom form to a task via Fusion 2.0 | Community
Skip to main content
Level 4
September 2, 2020
Question

adding custom form to a task via Fusion 2.0

  • September 2, 2020
  • 2 replies
  • 1953 views

I have a task that may or may not have a custom form attached. How do I check the task and add the form if needed?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Level 4
September 2, 2020

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

  1. 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).
  2. 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.
  3. 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.

RandyRoberts
Community Advisor
Community Advisor
November 19, 2021

I guess something changed because Fusion thinks this blueprint is not valid.

Level 2
May 19, 2023

This is a longshot since you posted so long ago, but did you ever get the blueprint to work?

Level 4
September 11, 2020

Hi Kevin, I hope you are doing well.

Great point. In your case, rather than "adding a single form", it appears you'd like to Apply a Set of forms to an object. As usual, there are multiple ways to accomplish this one thing:

  1. You are correct that, in Fusion 1.0, you could define an array (list) of objectCategories during object creation or update. We plan to include this capability in Fusion 2.0 as well (it's a small update, just not prioritized yet). But, in the mean time, you can use a scenario like the one attached. Screenshot included as well. You can also clean this up a bit as well by using Data Structures to more fully format the data as you like.
  2. You could also easily "iterate" through the scenario that I provided earlier wherein you can confirm that each form is already on the object and then, add it, if needed.

I hope this helps.

Level 2
September 11, 2020

Thanks. Just an update - sortOrder needs replaced with categoryOrder. Thanks again.