Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.py
def list_events_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    """
    Lists all events and return outputs in Demisto's format.

    Args:
        client: Client object with request
        args: Usually demisto.args()
    """
    events = client.list_events(**args)

    events_readable, events_outputs = parse_events(events.get('value'))  # type: ignore

    next_link_response = ''
    if '@odata.nextLink' in events:
        next_link_response = events['@odata.nextLink']

    if next_link_response:
        entry_context = {f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID).NextLink': next_link_response,
                         f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID)': events_outputs}
        title = 'Events (Note that there are more results. Please use the next_link argument to see them.):'
    else:
        entry_context = {f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID)': events_outputs}
        title = 'Events:'

    human_readable = tableToMarkdown(
        name=title,
        t=events_readable,
        headers=EVENT_HEADERS,
        removeNull=True
    )

    return human_readable, entry_context, events

    Lists all events and return outputs in Demisto's format.

    Args:
        client: Client object with request
        args: Usually demisto.args()
    
Lists all events and return outputs in Demisto's format.
Lists all events and return outputs in Demisto ' s format .
def list_events_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    events = client.list_events(**args)
    events_readable, events_outputs = parse_events(events.get('value'))  
    next_link_response = ''
    if '@odata.nextLink' in events:
        next_link_response = events['@odata.nextLink']
    if next_link_response:
        entry_context = {f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID).NextLink': next_link_response,
                         f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID)': events_outputs}
        title = 'Events (Note that there are more results. Please use the next_link argument to see them.):'
    else:
        entry_context = {f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID)': events_outputs}
        title = 'Events:'
    human_readable = tableToMarkdown(
        name=title,
        t=events_readable,
        headers=EVENT_HEADERS,
        removeNull=True
    )
    return human_readable, entry_context, events
def list_events_command ( client : Client , args : Dict ) -> Tuple [ str , Dict , Dict ] : events = client . list_events ( ** args ) events_readable , events_outputs = parse_events ( events . get ( 'value' ) ) next_link_response = '' if '@odata.nextLink' in events : next_link_response = events [ '@odata.nextLink' ] if next_link_response : entry_context = { f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID).NextLink' : next_link_response , f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID)' : events_outputs } title = 'Events (Note that there are more results. Please use the next_link argument to see them.):' else : entry_context = { f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID)' : events_outputs } title = 'Events:' human_readable = tableToMarkdown ( name = title , t = events_readable , headers = EVENT_HEADERS , removeNull = True ) return human_readable , entry_context , events
Lists all events and return outputs in Demisto's format.
Lists all events and return outputs in Demisto ' s format .
"""
    Lists all events and return outputs in Demisto's format.

    Args:
        client: Client object with request
        args: Usually demisto.args()
    """ # type: ignore
client
Client
Client object with request
Client object with request
args
Dict
None