def METHOD_NAME(entry, remove_from_triage):
    dict = {}
    for key in entry.custom:
        if key == TRIAGE_PORTAL_KEY:
            if remove_from_triage == 't':
                dict[key] = 'r'
            else:
                dict[key] = ''
        elif key == MSK_AUTOMATION_PORTAL_KEY:
            dict[key] = 'x'
        else:
            dict[key] = entry.custom[key].text
    return dict