Change attribute of selected object in reference selector.

Hi all, new here and first time asking a question, let me know if I need to be more clear. Essentially using a reference selector I've made it so I can attach 'Assets' to a parent ' Deal' using a reference selector to choose from all assets, similar to the Schedule Course part of the Rapid Developer learning path in the Academy. My issue is that I'd like it so that an asset can only belong to one deal, and if selected in the selector, will not be shown in the selector until 'detached' from its parent deal. I have a boolean ('InDeal') set up in the Asset entity with a default value of 'False' , and a constraint in the selector that only shows assets with the boolean set to false. I just can't seem to find a way to set this variable when the value is chosen in the selector, or when the choice is committed. I'll include pictures of the relevant entities, as well as the relevant selector form. Any advice would be greatly appreciated!
1 answers

Hi Sam,

You can set this boolean attribute using an on change event to trigger a microflow on your reference selector. If you go into the properties of your reference selector, the option will be at the very bottom. 

Alternatively, you can constrain your list by assets that don't have an association to a deal. You can do this using the not operator. Try something like this:



Hope this helps!