Flow_1q8xtg6 SR-User_Info Flow_05s4pvl Flow_08nmyrt Flow_0ltzuow Flow_1mplhly Flow_06rpl7o Flow_0i96b90 Flow_0d47w7r not(isCurrentUser) Flow_0i96b90 Flow_0dg341m # Update Current User Extras current_user_extras = {} # Add User Info DMN Table info current_user_extras["bamboo_api_id"] = userBambooId current_user_extras["time_zone"] = userTimeZone current_user_extras["date_format"] = userDateFormat current_user_extras["time_format"] = userTimeFormat # Add Bamboo Info to Extras if Status email if is_status_email: current_user_extras["first_name"] = bamboo_get_employee["firstName"] current_user_extras["last_name"] = bamboo_get_employee["lastName"] current_user_extras["preferred_name"] = bamboo_get_employee["preferredName"] if current_user_extras["preferred_name"] is None: current_user_extras["full_name"] = current_user_extras["first_name"] + " " + current_user_extras["last_name"] else: current_user_extras["full_name"] = current_user_extras["first_name"] + " (" + current_user_extras["preferred_name"] + ") " + current_user_extras["last_name"] current_user_extras["status_key"] = bamboo_get_employee["customStatusChatKey"] current_user_extras["bamboo_supervisor_api_id"] = bamboo_get_employee["supervisorEid"] current_user_extras["bamboo_supervisor_status_id"] = bamboo_get_employee["supervisorId"] del(userFullName) del(userFirstName) del(userTimeZone) del(userStatusKey) del(userBambooId) del(userDateFormat) del(userTimeFormat) Flow_0d47w7r Flow_0dg341m Flow_1gd83n0 Flow_1q8xtg6 Flow_05s4pvl # If not previously set, set find_user to current_user try: find_user except NameError: find_user = current_user["username"] isCurrentUser = True # Check if find_user has a Status email is_status_email = (find_user[-9:] == "status.im") Flow_08nmyrt Flow_0sypyzb Flow_1mplhly not(is_status_email) Flow_1gd83n0 Flow_0ltzuow # Delete Variables that do not need to be used later del(isCurrentUser) del(find_user) get_employee_id = userBambooId Flow_0sypyzb Flow_06rpl7o