Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.py
def delete_event_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    """
    Delete an event by event id and return outputs in Demisto's format

    Args:
        client: Client object with request
        args: Usually demisto.args()
    """
    event_id = str(args.get('event_id'))
    client.delete_event(**args)

    # get the event data from the context
    event_data = demisto.dt(demisto.context(), f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === "{event_id}")')
    if isinstance(event_data, list):
        event_data = event_data[0]

    # add a field that indicates that the event was deleted
    event_data['Deleted'] = True  # add a field with the members to the event
    entry_context = {f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID)': event_data}

    human_readable = f'Event was deleted successfully.'
    return human_readable, entry_context, NO_OUTPUTS

    Delete an event by event id and return outputs in Demisto's format

    Args:
        client: Client object with request
        args: Usually demisto.args()
    
Delete an event by event id and return outputs in Demisto's format
Delete an event by event id and return outputs in Demisto ' s format
def delete_event_command(client: Client, args: Dict) -> Tuple[str, Dict, Dict]:
    event_id = str(args.get('event_id'))
    client.delete_event(**args)
    event_data = demisto.dt(demisto.context(), f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === "{event_id}")')
    if isinstance(event_data, list):
        event_data = event_data[0]
    event_data['Deleted'] = True  
    entry_context = {f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID)': event_data}
    human_readable = f'Event was deleted successfully.'
    return human_readable, entry_context, NO_OUTPUTS
def delete_event_command ( client : Client , args : Dict ) -> Tuple [ str , Dict , Dict ] : event_id = str ( args . get ( 'event_id' ) ) client . delete_event ( ** args ) event_data = demisto . dt ( demisto . context ( ) , f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === "{event_id}")' ) if isinstance ( event_data , list ) : event_data = event_data [ 0 ] event_data [ 'Deleted' ] = True entry_context = { f'{INTEGRATION_CONTEXT_NAME}.Event(val.ID === obj.ID)' : event_data } human_readable = f'Event was deleted successfully.' return human_readable , entry_context , NO_OUTPUTS
Delete an event by event id and return outputs in Demisto's format
Delete an event by event id and return outputs in Demisto ' s format
"""
    Delete an event by event id and return outputs in Demisto's format

    Args:
        client: Client object with request
        args: Usually demisto.args()
    """ # get the event data from the context # add a field that indicates that the event was deleted # add a field with the members to the event
client
Client
Client object with request
Client object with request
args
Dict
None