Group Member Management with Checklist Pro
TYGR LLC
·
May 30, 2023
·
video
in this video we want to show what a pro code checklist pro package looks like going to build a governance process to help group managers routinely review and update the members of their groups using checklist Pro what you're about to see is completely contained in an update set with seven records first we'll create a template configuration or container record that holds two template records that we'll use for modeling our data one template record will be will be used for representing users that the are members of the group will Define it to be a checkbox type and give it the name person when the checklist is being built we'll put the group member name into the name field of our checklist item the other template record will be a reference type to the user table and this will allow us to pick new users that the group manager thinks should be in the group next we'll create our checklist configuration record that will reference this data model going to use the checklist assignment record as the record to attach our checklist to because any user in the system can access this record and checklist Pro provides built-in features that will provide notifications when this record is designed and easy to access UI from the service portal we're going to use checklist Pro's button feature that will customize to connect the new person reference field in our checklist with logic that will programmatically add that user to our checklist for that we'll need to use the checklist Pros extension point for building our button handle this is the pro code part on the left side nav find checklist Pro and under the admin section click manage extension points click the create implementation related link and then give our new extension point a name we'll call it group member audit this is just a script include that you'll need to click that create implementation button first because there's some behind the scenes things that we'll take care of for you to wire all this together we're going to take advantage of three checklist Pro callbacks first the CLP closed function in here we'll put the code to handle the user's actions on the checklist assignment record if they click to prove then we'll want to update the group to have all the selected group members from our checklist if they click reject then we'll just end and the group membership will stay as it is next the CLP show button function this is a simple one-liner that determines if the add member button should be shown or not we only want to show this button to the group manager when the state is still requested finally the CLP button click function here's where we'll put our logic to create a new checklist item with the new person that was selected in our reference field checklist item our list now that we've built our Pro code checklist Pro extension we'll go back to the checklist configuration and update so that the checklist Pro engine knows how to use them finally we'll create a scheduled job to go through all the active routes with the manager for each group we'll create a checklist assignment record and assign it to the group manager we'll also programmatically build our checklist items one item for each member of the group this is the other Pro code decision we're making now we're ready to run it we'll execute the scheduled job and then impersonate a group manager to see what they see let's pick Beau ruggery we'll notice on the service portal there's a checklist menu item with one entry unit we'll see the checklist assignment record for him to review for the network group when he clicks that you'll see the list of all Network group members represented as a checklist the new person selector that we can use to pick a new member to be added to the group and the corresponding add member button let's remove one user and add two new members we'll simply uncheck the member we feel no longer should be in the group and then we'll pick the new person and click add member button to add them to the group once we've done that we'll click the approve button and we're done now let's go check the group to make sure our actions will properly reflect and there you have it we used checklist Pro to implement a nice data stewardship utility to help group managers keep their group members up to date
https://www.youtube.com/watch?v=FyRbismEwUE