break lease

break lease

Comments

  • Hello, we have a report that shows records and you can click on a record to open the assignment. If some one else is in the record I (an admin) can right click and break the lease. If someone else right clicks a record that is being used it does not show this options. We wanted to know if it is possible to give certain groups permission to break the lease depending on the report. Also we would like to know if we could get it to show who is in the assignment to all users who do not have the break lease option when they right click.

    Thanks,
    Jeremy

  • The "break lease" action will appear for users part of the Administrator groups. Are the groups you using non-admin users?

  • Yes. We want managers and team leads to be able to break the lease but we do not want to give them administrator privileges

  • To add a “Break Lease “ Action to assignments for Non-admin users we will need to create a custom user action for the Assignment Type. Then we can add action visibility Rules to restrict the action to specific users.
    [li]Create an “Assignment Configuration Extension”.
    [/li][li]Navigate to a Designer Folder.
    [/li][li]Click “Create data types/Integrations”.
    [/li][li]Navigate to Configuration Extensions>Add entity Actions and Configuration.
    [/li][li]Make sure this folder gives permission to “all users”.
    [/li][li]Additional Information on Configuration folders can be found in this documentation
    [/li][li][url=https://documentation.decisions.com/docs/creating-a-configuration-folder-for-native-decisions-data-types]https://documentation.decisions.com/docs/creating-a-configuration-folder-for-native-decisions-data-types[/url]
    [/li]
    [color=rgb(127, 140, 141)][font=Roboto][img]att4[/img][/font][/color]
    [li]In the newly created Assignment Configuration extension, create a User action.
    [/li][li]In the flow, step tab, navigate to the Integration>Internal Services>Object Lock Services. This section will have the steps needed to break the lease.
    [/li][li]The “Break Lock” step is used to break the lock on an object. In this use case, it can be used for assignments. We will need to pass the Assignment Id from the Flow input data to this step.
    [/li][li]For example, I have created the following user action where it checks if the assignment is locked. Then get information on the locked assignment (using the “Get Locked Info step”). The Form outputs a message to let the user know the assignment is locked by someone. The “Break Lock” step allows the user to break the lock. The “End Session” step will take the user to the assignment.
    [/li]
    [img]att3[/img]
    [li]We can use an Action Visibility Rule to restrict this action to specific Groups.
    [/li][li] Additional information on Action Visibility Rules can be found in the following documentation [url=https://documentation.decisions.com/docs/action-visibility-rules]https://documentation.decisions.com/docs/action-visibility-rules[/url].
    [/li]
    For example:
    [color=rgb(127, 140, 141)][font=Roboto][img]att2[/img][/font][/color]

    This will complete the action and make it available to the specific users.
    To add information regarding who has the assignment opened, we can use a Flow inline column for the report. For this Flow we will need to use the “Get locked info” step( Integration>Internal Services>Object Lock Services).
    Additional information on Flow inline fields can be found in the following documentation: [url=https://documentation.decisions.com/docs/flow-based-steps-report]https://documentation.decisions.com/docs/flow-based-steps-report[/url]

    For example, the flow can look like the following:
    [color=rgb(127, 140, 141)][font=Roboto][img]att1[/img][/font][/color]

    Note: The example above was developed to be instructional, and were not developed as officially supported components.
    [i]edited by faiza@decisions.com on 7/1/2020[/i]

Sign In or Register to comment.