Share via


Table "Custom Report Selection"

ID 9657
Namespace: Microsoft.Foundation.Reporting

Properties

Name Value
Caption Custom Report Selection
DataClassification CustomerContent

Fields

Name Type Description
"Source Type" Integer
"Source No." Code[20]
Usage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
Sequence Integer
"Report ID" Integer

Specifies the ID of the report.

"Report Caption" Text[250]

Specifies the name of the report.

"Custom Report Layout Code" Code[20]
"Custom Report Description" Text[250]

Specifies a description of the custom report layout.

"Send To Email" Text[200]

Specifies that the report is used when sending emails.

"Use for Email Attachment" Boolean

Specifies that summarized information, such as invoice number, due date, and payment service link, will be inserted in the body of the email that you send.

"Use for Email Body" Boolean

Specifies that summarized information, such as invoice number, due date, and payment service link, will be inserted in the body of the email that you send.

"Email Body Layout Code" Code[20]

Specifies the ID of the email body layout that is used.

"Email Body Layout Description" Text[250]

Specifies a description of the custom email body layout that is used.

"Use Email from Contact" Boolean
"Selected Contacts Filter" Blob
"Email Attachment Layout Name" Text[250]
"Email Attachment Layout AppID" Guid
"Email Body Layout Name" Text[250]
"Email Body Layout AppID" Guid
"Email Body Layout Caption" Text[250]

Specifies the description of the report layout that is used for email body.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

InitUsage

procedure InitUsage()

FilterReportUsage

procedure FilterReportUsage(NewSourceType: Integer, NewSourceNo: Code[20], NewUsage: Option)

Parameters

Name Type Description
NewSourceType Integer
NewSourceNo Code[20]
NewUsage Option

FilterEmailBodyUsage

procedure FilterEmailBodyUsage(NewSourceType: Integer, NewSourceNo: Code[20], NewUsage: Option)

Parameters

Name Type Description
NewSourceType Integer
NewSourceNo Code[20]
NewUsage Option

LookupCustomReportDescription

procedure LookupCustomReportDescription()

LookupEmailBodyDescription

procedure LookupEmailBodyDescription()

CopyFromReportSelections

procedure CopyFromReportSelections(var ReportSelections: Record "Report Selections", SourceType: Integer, SourceNo: Code[20])

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
SourceType Integer
SourceNo Code[20]

GetSendToEmailFromContactsSelection

procedure GetSendToEmailFromContactsSelection(LinkType: Option, LinkNo: Code[20])

Parameters

Name Type Description
LinkType Option
LinkNo Code[20]

GetSendToEmailFromContacts

procedure GetSendToEmailFromContacts(var Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

ShowSelectedContacts

procedure ShowSelectedContacts()

GetSendToEmail

procedure GetSendToEmail(Update: Boolean): Text[250]

Parameters

Name Type Description
Update Boolean

Returns

Type Description
Text[250]

UpdateSendtoEmail

procedure UpdateSendtoEmail(Update: Boolean)

Parameters

Name Type Description
Update Boolean

Events

OnAfterFilterEmailBodyUsage

[IntegrationEvent(False,False)]
local procedure OnAfterFilterEmailBodyUsage(var CustomReportSelection: Record "Custom Report Selection", NewSourceType: Integer, NewSourceNo: Code[20], NewUsage: Option)

Parameters

Name Type Description
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
NewSourceType Integer
NewSourceNo Code[20]
NewUsage Option

OnBeforeGetSendToEmail

[IntegrationEvent(True,False)]
local procedure OnBeforeGetSendToEmail(Update: Boolean, var Result: Text[250], var IsHandled: Boolean)

Parameters

Name Type Description
Update Boolean
Result Text[250]
IsHandled Boolean

OnCopyFromReportSelections

[IntegrationEvent(False,False)]
local procedure OnCopyFromReportSelections(var CustomReportSelection: Record "Custom Report Selection", var ReportSelections: Record "Report Selections")

Parameters

Name Type Description
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

OnCopyFromReportSelectionsOnBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnCopyFromReportSelectionsOnBeforeInsert(var CustomReportSelection: Record "Custom Report Selection", ReportSelections: Record "Report Selections")

Parameters

Name Type Description
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

OnGetSendToEmailFromContacts

[IntegrationEvent(False,False)]
local procedure OnGetSendToEmailFromContacts(var CustomReportSelection: Record "Custom Report Selection", var Contact: Record Contact, var ShowExceededContactsNotification: Boolean)

Parameters

Name Type Description
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
Contact Table Microsoft.CRM.Contact.Contact
ShowExceededContactsNotification Boolean

OnGetSelectedContactsFilter

[IntegrationEvent(False,False)]
local procedure OnGetSelectedContactsFilter(var SelectedContactsFilter: Text)

Parameters

Name Type Description
SelectedContactsFilter Text

See also