Using Fusion To Remove Roles From All Tasks In A Project | Community
Skip to main content
Eric_D_Miller
Level 5
November 21, 2024
Question

Using Fusion To Remove Roles From All Tasks In A Project

  • November 21, 2024
  • 3 replies
  • 1283 views

Hello,

 

I am trying to add a module(s) that will search a Project for every Task that contains a certain Role, and to then remove that Role from all of those tasks. Does anyone have a way of achieving this in Fusion?

 

Thank you

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

3 replies

KellieGardner
Community Advisor
Community Advisor
November 21, 2024

I haven't tested this but I would start with the search function and search assignments for that specific role ID and then updated it. 

 

 

Eric_D_Miller
Level 5
November 22, 2024

Hi Kellie,

 

I was able to create a module to search for assignments but am unsure how to go about removing the role from those tasks. Can you direct me as to how?

Doug_Den_Hoed__AtAppStore
Community Advisor
Community Advisor
November 21, 2024

 

Hi @eric_d_miller,

 

If there is no reason otherwise to keep it, I suggest you consider the drastic but simple option of deleting that Role.

 

Regards,

Doug 

RandyRoberts
Community Advisor
Community Advisor
November 22, 2024

Hi, What is the long game here? Are you looking to remove that role from all existing tasks and never use it again? Then I would just delete it in the Roles area of Setup.

Are you looking to remove that role from certain projects on an ongoing basis? I think the solution depends greatly on the context of what you're trying to achieve in the long run.

Eric_D_Miller
Level 5
November 22, 2024

Essentially I am looking to remove the role from all tasks on the project if certain fields are selected.

 

I have a module set to search for assignments containing that role in the project already and the proper filters are set to ensure that the modules only process when certain fields are selected.

 

What don't know is how to unassign/remove the role from those existing assignments I searched for.

RandyRoberts
Community Advisor
Community Advisor
November 22, 2024

The basics of what you probably need to do is:

Convert the assignment data into an array.

Iterate through the array of assignments and remove matching entries using the remove function something like this: remove(array of all assignments;value from iterator)

 

Disclaimer: I have added assignments to an array via the add function but never tried removing one.

I would also suggest asking this question in the Make.com community HERE. If you've never heard of Make, it's a commercial version of the automation tool from which Fusion is derived. Their community and learning materials are superb. I learned Fusion by completing the Make Academy training and using Make.