posts
I had a requirement to enable Search on clicking on Enter key on a text box or clicking explicitly on the button to trigger the search. Upon investigation and playing around, I discovered the OnChange trigger works well. So that I don’t duplicate logic across two triggers, I wrapped the logic of the search into a hidden button on the form
Referenced the logic into the textbox and icon
On Change referencing button from Textbox On Select from Icon
posts
EventMessage Compose Action
concat( coalesce(triggerBody()?['subject'], '(No subject)'), ' 📅 ', formatDateTime(triggerBody()?['startWithTimeZone'], 'dd/MM/yyyy HH:mm'), ' - ', formatDateTime(triggerBody()?['endWithTimeZone'], 'dd/MM/yyyy HH:mm'), ' | ', coalesce(triggerBody()?['location'],'Location TBC'), decodeUriComponent('%0A%0A'), coalesce( trim( replace( replace( body('Html_to_text'), ' ', ' ' ), decodeUriComponent('%0A%0A%0A'), decodeUriComponent('%0A%0A') ) ), '' ), decodeUriComponent('%0A'), '🔗 ', if( not(empty(triggerBody()?['webLink'])), concat('[Open](', triggerBody()?['webLink'], ')'), concat( '[Open in Outlook](', 'https://outlook.office.com/calendar/item/', uriComponent(triggerBody()?['id']), ')' ) ), decodeUriComponent('%0A') )
posts
Compose action TeamsMeetingLinkValue
trim( first( split( substring( body('Html_to_text'), indexOf(body('Html_to_text'), 'https://teams.microsoft.com/meet/') ), '\n' ) ) ) TeamsMeetingLinkmd
concat('[Join the meeting now](', outputs('TeamsMeetingLinkValue'), ')') BodyDescription
substring( body('Html_to_text'), 0, indexOf(body('Html_to_text'), '--------------------------------------------------------------------------------') ) ListItemId
decodeUriComponent(split(split(variables('linktodownloadics'), 'ID=')[1], '&')[0]) EventMessagefromoutlook body
concat( coalesce(triggerBody()?['subject'], '(No subject)'), ' 📅 ', formatDateTime(triggerBody()?['startWithTimeZone'], 'dd/MM/yyyy HH:mm'), ' - ', formatDateTime(triggerBody()?['endWithTimeZone'], 'dd/MM/yyyy HH:mm'), ' | ', coalesce(triggerBody()?['location'],'Location TBC'), decodeUriComponent('%0A%0A'), coalesce( triggerBody()?['body'], '' ), decodeUriComponent('%0A'), '🔗 ', if( not(empty(triggerBody()?['webLink'])), concat('[Open](', triggerBody()?['webLink'], ')'), concat( '[Open in Outlook](', 'https://outlook.