ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

event request for modify the email body in approval & cancel notification emails

Open SahilGuptaBS opened this issue 6 years ago • 7 comments

Hi everyone during development, I need an event to modify the details of email body image

Report Name : 1320 "Notification Email" function name: SetReportFieldPlaceholders event location : in the last of this procedure where i can modify the details (variables ) like Field1Label,Field1Value, Field2Label, Field2Value etc.....

SahilGuptaBS avatar Nov 26 '20 09:11 SahilGuptaBS

Please always put the full detailed signature of the requested events. You help us implementing the requests faster when your request contains AL code copied from VSCode instead of screenshots.

StanPesotskiy avatar Nov 26 '20 13:11 StanPesotskiy

@StanPesotskiy here is the signature of event

image

SahilGuptaBS avatar Nov 27 '20 11:11 SahilGuptaBS

You help us implementing the requests faster when your request contains AL code copied from VSCode instead of screenshots.

StanPesotskiy avatar Nov 27 '20 11:11 StanPesotskiy

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Dec 08 '20 12:12 JesperSchulz

There is already OnSetReportFieldPlaceholders() earlier, with which this request seems largely redundant.

The problem I see is that said publisher passes Field3Label, Field3Value as var to subscribers, allowing us to set those fields to our own values - but then the case "Notification Entry".Type will override them in most cases, i.e. when Type is Approval.

A better fix might be to add a var Handled: Boolean argument to OnSetReportFieldPlaceholders(), and only enter the case if we have not Handled setting the fields in a subscriber. But I guess I'll wait and see if this change lands and is sufficient for us.

dzzzb avatar Dec 24 '20 11:12 dzzzb

@dtkb This request was closed but you added a new comment. We do not track the closed requests so your comment may be not registered and answered. If you want to continue discussion please create a new request and put a link to the closed one.

StanPesotskiy avatar Jan 11 '21 07:01 StanPesotskiy

@StanPesotskiy done; see link in mention above.

dzzzb avatar Jan 12 '21 10:01 dzzzb