SAP-docs / btp-integration-suite

Markdown source for the Integration Suite documentation. Enables feedback and contributions to improve the documentation.
Creative Commons Attribution 4.0 International
12 stars 18 forks source link

Incorrect coding in the Groovy Script example #92

Closed michaelarter closed 1 month ago

michaelarter commented 2 months ago

Issue description

Hi there, I would like to point out a couple of errors in the Groovy Script example.

The following 3 lines:- messageLog.message.addCustomerHeaderProperty("Log Level", logLevel) messageLog.message.addCustomerHeaderProperty("Internal Log Level", logLevelInternal) messageLog.message.addCustomerHeaderProperty("External Log Level", logLevelExternal)

are incorrect. There is no property 'message' for object messageLog and .addCustomerHeaderProperty should be .addCustomHeaderProperty.

So the 3 lines should read:- messageLog.addCustomHeaderProperty("Log Level", logLevel) messageLog.addCustomHeaderProperty("Internal Log Level", logLevelInternal) messageLog.addCustomHeaderProperty("External Log Level", logLevelExternal)

Cheers,

Michael Arter Discovery Consulting

Feedback Type (Optional)

None

Page Title on SAP Help Portal (prefilled)

Setting Log Levels

Page URL on SAP Help Portal (prefilled)

https://help.sap.com/docs/cloud-integration/sap-cloud-integration/setting-log-levels

SrutiSagaram commented 2 months ago

@michaelarter Thank you for your feedback. We will take a look and get back.

pe-gu commented 1 month ago

Dear @michaelarter, thanks also from my side for your contribution! I have corrected and tested the script and the topic is updated.

pe-gu commented 1 month ago

Dear @michaelarter, thanks also from my side for your contribution! I have corrected and tested the script and the topic is updated.

sap-doc-bot[bot] commented 1 month ago

Thank you for your valuable feedback contribution, @michaelarter! So that we can recognize your contribution in the SAP Community, please check your SAP Community user ID (this is a number) in your personal settings page and share it with us in a reply to this comment. Make sure you just include the number in the reply.

Your user ID is displayed as follows:

Change display name for User ID N

where N is your user ID. For example, 53 is the user ID of the user 'qmacro'.

Please note that we are currently refactoring our profile and badge system on the SAP Community, and will start assigning badges again when that's complete.

michaelarter commented 1 month ago

Hi there, My user ID is 43316.

Cheers

Michael

On Fri, 9 Aug 2024 at 22:20, sap-doc-bot[bot] @.***> wrote:

Thank you for your valuable feedback contribution, @michaelarter https://github.com/michaelarter! So that we can recognize your contribution in the SAP Community https://github.com/SAP-docs/contribution-guidelines/blob/main/docs/recognition.md, please check your SAP Community user ID (this is a number) in your personal settings page https://community.sap.com/t5/user/myprofilepage/tab/personal-profile and share it with us in a reply to this comment. Make sure you just include the number in the reply.

Your user ID is displayed as follows:

Change display name for User ID N

where N is your user ID. For example, 53 is the user ID of the user 'qmacro' https://community.sap.com/t5/user/viewprofilepage/user-id/53.

Please note that we are currently refactoring our profile and badge system on the SAP Community, and will start assigning badges again when that's complete.

— Reply to this email directly, view it on GitHub https://github.com/SAP-docs/btp-integration-suite/issues/92#issuecomment-2277820902, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFA67CZJMOULPELSB7LMIJLZQSXYDAVCNFSM6AAAAABLNNEZQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZXHAZDAOJQGI . You are receiving this because you were mentioned.Message ID: @.***>

--

Michael Arter

Discovery Consulting | We Listen. We Align. We Deliver

“Discovery Consulting acknowledges the Traditional Custodians of the land and pay our respects to the Elders past, present and emerging and commit to building a brighter future together. Discovery Consulting is proud to partner with our customers and communities to enable digital enterprise platforms”

e. @. @.>*

m. +61 419 927 401 | t. 1300 664 903

[image: Discovery_New_Logo_w2b_new (1)] http://www.discoveryconsulting.com.au/

NOTICE - This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message, or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error, please notify the sender immediately and delete the message. Thank you