Table of Contents

Interface "Email View Policy"

Namespace: System.Email

The interface for a email view policy. Email view policies decide the emails that a given User can view.

Methods

GetSentEmails

Get sent emails that policy allow.

procedure GetSentEmails(var SentEmails: Record "Sent Email" temporary)

Parameters

Name Type Description
SentEmails Table System.Email."Sent Email"

The record to contain the sent emails.

GetOutboxEmails

Get outbox email that policy allow.

procedure GetOutboxEmails(var OutboxEmails: Record "Email Outbox" temporary)

Parameters

Name Type Description
OutboxEmails Table System.Email."Email Outbox"

The record to contain the outbox emails.

GetSentEmails

Get sent emails that policy allow for a given entity.

procedure GetSentEmails(SourceTableId: Integer, var SentEmails: Record "Sent Email" temporary)

Parameters

Name Type Description
SourceTableId Integer

Table id for the entity.

SentEmails Table System.Email."Sent Email"

The record to contain the sent emails.

GetOutboxEmails

Get outbox emails that policy allow for a given entity.

procedure GetOutboxEmails(SourceTableId: Integer, var OutboxEmails: Record "Email Outbox" temporary)

Parameters

Name Type Description
SourceTableId Integer

Table id for the entity.

OutboxEmails Table System.Email."Email Outbox"

The record to contain the outbox emails.

GetSentEmails

Get sent emails that policy allow for a given record.

procedure GetSentEmails(SourceTableId: Integer, SourceSystemId: Guid, var SentEmails: Record "Sent Email" temporary)

Parameters

Name Type Description
SourceTableId Integer

Table id for the entity.

SourceSystemId Guid

System id for the record.

SentEmails Table System.Email."Sent Email"

The record to contain the sent emails.

GetOutboxEmails

Get outbox emails that policy allow for a given record.

procedure GetOutboxEmails(SourceTableId: Integer, SourceSystemId: Guid, var OutboxEmails: Record "Email Outbox" temporary)

Parameters

Name Type Description
SourceTableId Integer

Table id for the entity.

SourceSystemId Guid

System id for the record.

OutboxEmails Table System.Email."Email Outbox"

The record to contain the outbox emails.

HasAccess

Establish if User has access to sent email.

procedure HasAccess(SentEmail: Record "Sent Email"): Boolean

Parameters

Name Type Description
SentEmail Table System.Email."Sent Email"

Record in Sent Email

Returns

Type Description
Boolean

Returns true if User has access to view sent email. Otherwise false.

HasAccess

Establish if User has access to email in outbox.

procedure HasAccess(OutboxEmail: Record "Email Outbox"): Boolean

Parameters

Name Type Description
OutboxEmail Table System.Email."Email Outbox"

Record in Email Outbox

Returns

Type Description
Boolean

Returns true if User has access to view sent email. Otherwise false.

See also