Update existing calendar event, how to manage and add complex HTML content to a JSON property?

%3CLINGO-SUB%20id%3D%22lingo-sub-2381605%22%20slang%3D%22en-US%22%3EUpdate%20existing%20calendar%20event%2C%20how%20to%20manage%20and%20add%20complex%20HTML%20content%20to%20a%20JSON%20property%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2381605%22%20slang%3D%22en-US%22%3E%3CP%3E%3CNEWBIE%3E%26nbsp%3B%20We%20are%20working%20on%20a%20tool%20that%20would%20scan%20calendar%20events%2C%20read%20and%20then%20update%20the%20calendar%20event%20HTML%20body.%26nbsp%3B%20%26nbsp%3BOur%20goal%20is%20to%20scan%20existing%20events%20for%20online%20Team's%20meeting%20and%20fix%20the%20URL's%20that%20were%20broken%20during%20mailbox%20migration.%26nbsp%3B%26nbsp%3B%3C%2FNEWBIE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20were%20successful%20testing%20PATCH%20and%20replacing%20the%20existing%20event%20HTML%20event%20body%20using%20a%20very%20simple%20HTML%20content%20below.%20The%26nbsp%3B%3CSPAN%3EInvoke-RestMethod%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-Method%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22PATCH%22%3C%2FSPAN%3E%3CFONT%20face%3D%22inherit%22%3E%26nbsp%3Brequires%20us%20to%20use%20a%20%3C%2FFONT%3Eformatted%3CFONT%20face%3D%22inherit%22%3E%26nbsp%3BJSON%20file%20like%20this%20which%20was%20%3C%2FFONT%3Esuccessful%3CFONT%20face%3D%22inherit%22%3E%26nbsp%3Bat%20overwriting%20the%20existing%20events%20HTML%20body%20as%20a%20test.%3C%2FFONT%3E%3C%2FP%3E%3CP%3ESimple%2C%20successful%20JSON%20body%20below%20did%20update%20the%20existing%20event%3A%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%22body%22%3A%20%7B%3CBR%20%2F%3E%22contentType%22%3A%20%22HTML%22%2C%3CBR%20%2F%3E%22content%22%3A%20%22%3C%2FP%3E%3CDIV%3E%3CB%3EThis%20is%20bold%20text!%3C%2FB%3E%20This%20is%20not%20bold%20text...%20%3C%2FDIV%3E%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20current%20issue%20is%20how%20do%20we%20add%20COMPLEX%20HTML%20content%20to%20the%20JSON%20Body.content%20property%20without%20breaking%20the%20JSON%20validation%3F%26nbsp%3B%20We%20need%20some%20guidance%20on%20how%20you%20would%20approach%20reading%20the%20existing%20event%20body%2C%20modifying%20an%20existing%20%3CA%20hyperlink%3D%22%22%20within%3D%22%22%20the%3D%22%22%20content%3D%22%22%20target%3D%22_blank%22%3E%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20below%20JSON%20body%20which%20was%20originally%20read%20from%20the%20event%20and%20had%20a%20%3CA%20hyperlink%3D%22%22%20modified%3D%22%22%20failed%3D%22%22%20validation%3D%22%22%20at%3D%22%22%20line%3D%22%22%204%3D%22%22%20which%3D%22%22%20was%3D%22%22%20the%3D%22%22%20opening%3D%22%22%20target%3D%22_blank%22%3E%20text%20tag.%26nbsp%3B%20We%20have%20not%20found%20any%20documentation%20that%20helps%20with%20managing%20HTML%20within%20JSON.%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22body%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22contentType%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22HTML%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSPAN%3E%22content%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26lt%3Bmeta%20http-equiv%3D%22%22%26lt%3B%2FSPAN%22%20%2F%26gt%3B%3CSPAN%3EContent-Type%3C%2FSPAN%3E%3CSPAN%3E%22%20content%3D%22%3C%2FSPAN%3E%3CSPAN%3Etext%2Fhtml%3B%3C%2FSPAN%3E%20%3CSPAN%3Echarset%3Dutf%3C%2FSPAN%3E%3CSPAN%3E-8%3C%2FSPAN%3E%3CSPAN%3E%22%26gt%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26lt%3Bmeta%20content%3D%22%22%26lt%3B%2FSPAN%22%20%2F%26gt%3B%3CSPAN%3Etext%2Fhtml%3B%3C%2FSPAN%3E%20%3CSPAN%3Echarset%3Dus-ascii%3C%2FSPAN%3E%3CSPAN%3E%22%26gt%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%20style%3D%22%26quot%3B%26lt%3B%2FSPAN%22%3E%3CSPAN%3Ewidth%3A%3C%2FSPAN%3E%3CSPAN%3E100%3C%2FSPAN%3E%3CSPAN%3E%25%3B%3C%2FSPAN%3E%20%3CSPAN%3Eheight%3A%3C%2FSPAN%3E%3CSPAN%3E20%3C%2FSPAN%3E%3CSPAN%3Epx%3C%2FSPAN%3E%3CSPAN%3E%22%26gt%3B%3CSPAN%20style%3D%22%26quot%3B%26lt%3B%2FSPAN%22%3E%3CSPAN%3Ewhite-space%3Anowrap%3B%3C%2FSPAN%3E%20%3CSPAN%3Ecolor%3A%23%3C%2FSPAN%3E%3CSPAN%3E5%3C%2FSPAN%3E%3CSPAN%3EF%3C%2FSPAN%3E%3CSPAN%3E5%3C%2FSPAN%3E%3CSPAN%3EF%3C%2FSPAN%3E%3CSPAN%3E5%3C%2FSPAN%3E%3CSPAN%3EF%3B%3C%2FSPAN%3E%20%3CSPAN%3Eopacity%3A.%3C%2FSPAN%3E%3CSPAN%3E36%3C%2FSPAN%3E%3CSPAN%3E%22%26gt%3B________________________________________________________________________________%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%20class%3D%22%26quot%3B%26lt%3B%2FSPAN%22%3E%3CSPAN%3Eme-email-text%3C%2FSPAN%3E%3CSPAN%3E%22%20style%3D%22%3C%2FSPAN%3E%3CSPAN%3Ecolor%3A%23%3C%2FSPAN%3E%3CSPAN%3E252424%3C%2FSPAN%3E%3CSPAN%3E%3B%3C%2FSPAN%3E%20%3CSPAN%3Efont-family%3A'Segoe%3C%2FSPAN%3E%20%3CSPAN%3EUI'%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E'Helvetica%3C%2FSPAN%3E%20%3CSPAN%3ENeue'%2CHelvetica%2CArial%2Csans-serif%3C%2FSPAN%3E%3CSPAN%3E%22%26gt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%20style%3D%22%26quot%3B%26lt%3B%2FSPAN%22%3E%3CSPAN%3Emargin-top%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E24%3C%2FSPAN%3E%3CSPAN%3Epx%3B%3C%2FSPAN%3E%20%3CSPAN%3Emargin-bottom%3A%3C%2FSPAN%3E%3CSPAN%3E20%3C%2FSPAN%3E%3CSPAN%3Epx%3C%2FSPAN%3E%3CSPAN%3E%22%26gt%3B%3CSPAN%20style%3D%22%26quot%3B%26lt%3B%2FSPAN%22%3E%3CSPAN%3Efont-size%3A%3C%2FSPAN%3E%3CSPAN%3E24%3C%2FSPAN%3E%3CSPAN%3Epx%3B%3C%2FSPAN%3E%20%3CSPAN%3Ecolor%3A%23%3C%2FSPAN%3E%3CSPAN%3E252424%3C%2FSPAN%3E%3CSPAN%3E%22%26gt%3BMicrosoft%20Teams%20meeting%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%20style%3D%22%26quot%3B%26lt%3B%2FSPAN%22%3E%3CSPAN%3Emargin-bottom%3A%3C%2FSPAN%3E%3CSPAN%3E20%3C%2FSPAN%3E%3CSPAN%3Epx%3C%2FSPAN%3E%3CSPAN%3E%22%26gt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%20style%3D%22%26quot%3B%26lt%3B%2FSPAN%22%3E%3CSPAN%3Emargin-top%3A%3C%2FSPAN%3E%3CSPAN%3E0%3C%2FSPAN%3E%3CSPAN%3Epx%3B%3C%2FSPAN%3E%20%3CSPAN%3Emargin-bottom%3A%3C%2FSPAN%3E%3CSPAN%3E0%3C%2FSPAN%3E%3CSPAN%3Epx%3B%3C%2FSPAN%3E%20%3CSPAN%3Efont-weight%3Abold%3C%2FSPAN%3E%3CSPAN%3E%22%26gt%3B%3CSPAN%20style%3D%22%26quot%3B%26lt%3B%2FSPAN%22%3E%3CSPAN%3Efont-size%3A%3C%2FSPAN%3E%3CSPAN%3E14%3C%2FSPAN%3E%3CSPAN%3Epx%3B%3C%2FSPAN%3E%20%3CSPAN%3Ecolor%3A%23%3C%2FSPAN%3E%3CSPAN%3E252424%3C%2FSPAN%3E%3CSPAN%3E%22%26gt%3BJoin%20on%20your%20computer%20or%20mobile%20app%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CA%20class%3D%22%26quot%3B%26lt%3B%2FSPAN%22%20target%3D%22_blank%22%3E%3CSPAN%3Eme-email-headline%3C%2FSPAN%3E%3CSPAN%3E%22%20href%3D%22%3C%2FSPAN%3E%3CSPAN%3Ehttps%3A%3C%2FSPAN%3E%3CSPAN%3E%2F%2Fteams.microsoft.com%2Fl%2Fmeetup-join%2F19%3Ameeting_MDM1OTgwYzUtZTU4My00Y2VkLTljYzgtNDAzYmQzYWFlYzJk%40thread.v2%2F0%3Fcontext%3D%257b%2522Tid%2522%253a%2522b61d9528-c1d8-4637-8ed5-f61771d5ca19%2522%252c%2522Oid%2522%253a%252211111111-2222-3333-4444-555555555555%2522%257d%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%22%20style%3D%22font-size%3A14px%3B%20font-family%3A'Segoe%20UI%20Semibold'%2C'Segoe%20UI'%2C'Helvetica%20Neue'%2CHelvetica%2CArial%2Csans-serif%3B%20text-decoration%3Aunderline%3B%20color%3A%236264a7%22%26gt%3BClick%3C%2FSPAN%3E%3C%2FA%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ehere%3C%2FSPAN%3E%20%3CSPAN%3Eto%3C%2FSPAN%3E%20%3CSPAN%3Ejoin%3C%2FSPAN%3E%20%3CSPAN%3Ethe%3C%2FSPAN%3E%20%3CSPAN%3Emeeting%3C%2FSPAN%3E%20%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%3E%3C%2FDIV%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22margin-bottom%3A4px%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%3E%3C%2FDIV%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22margin-bottom%3A4px%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3CSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A14px%3B%20color%3A%23252424%3B%20font-weight%3Abold%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3BOr%3C%2FSPAN%3E%20%3CSPAN%3Ecall%3C%2FSPAN%3E%20%3CSPAN%3Ein%3C%2FSPAN%3E%20%3CSPAN%3E(audio%3C%2FSPAN%3E%20%3CSPAN%3Eonly)%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%3E%3C%2FDIV%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22margin-bottom%3A4px%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3CA%3E%3C%2FA%3E%3C%2FSPAN%3E%20%3CSPAN%3Ehref%3D%3C%2FSPAN%3E%3CSPAN%3E%22tel%3A%2B13236734336%2C%2C435656748%23%20%22%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A14px%3B%20text-decoration%3Aunderline%3B%20color%3A%236264a7%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%2B%3C%2FSPAN%3E%3CSPAN%3E1%3C%2FSPAN%3E%20%3CSPAN%3E323-673-4336%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%2C435656748%23%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A14px%3B%20color%3A%23252424%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%26amp%3Bnbsp%3B%3C%2FSPAN%3E%20%3CSPAN%3EUnited%3C%2FSPAN%3E%20%3CSPAN%3EStates%2C%3C%2FSPAN%3E%20%3CSPAN%3ELos%3C%2FSPAN%3E%20%3CSPAN%3EAngeles%3C%2FSPAN%3E%20%3CSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A14px%3B%20color%3A%23252424%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3BPhone%3C%2FSPAN%3E%20%3CSPAN%3EConference%3C%2FSPAN%3E%20%3CSPAN%3EID%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A16px%3B%20color%3A%23252424%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3CSPAN%3E435%3C%2FSPAN%3E%20%3CSPAN%3E656%3C%2FSPAN%3E%20%3CSPAN%3E748%3C%2FSPAN%3E%3CSPAN%3E%23%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%3E%3C%2FDIV%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22margin-bottom%3A20px%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3CA%3E%3C%2FA%3E%3C%2FSPAN%3E%20%3CSPAN%3Eclass%3D%3C%2FSPAN%3E%3CSPAN%3E%22me-email-link%22%3C%2FSPAN%3E%20%3CSPAN%3Etarget%3D%3C%2FSPAN%3E%3CSPAN%3E%22_blank%22%3C%2FSPAN%3E%20%3CSPAN%3Ehref%3D%3C%2FSPAN%3E%3CSPAN%3E%22%3CA%20href%3D%22https%3A%2F%2Fdialin.teams.microsoft.com%2Fff6397c2-bb2f-452d-af22-68cb43c8bbea%3Fid%3D435656748%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdialin.teams.microsoft.com%2Fff6397c2-bb2f-452d-af22-68cb43c8bbea%3Fid%3D435656748%3C%2FA%3E%22%3C%2FSPAN%3E%20%3CSPAN%3Erel%3D%3C%2FSPAN%3E%3CSPAN%3E%22noreferrer%20noopener%22%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A14px%3B%20text-decoration%3Aunderline%3B%20color%3A%236264a7%3B%20font-family%3A'Segoe%20UI'%2C'Helvetica%20Neue'%2CHelvetica%2CArial%2Csans-serif%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3BFind%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ea%3C%2FSPAN%3E%20%3CSPAN%3Elocal%3C%2FSPAN%3E%20%3CSPAN%3Enumber%3C%2FSPAN%3E%20%3CSPAN%3E%7C%3C%2FSPAN%3E%20%3CSPAN%3E%3CA%3E%3C%2FA%3E%3C%2FSPAN%3E%20%3CSPAN%3Eclass%3D%3C%2FSPAN%3E%3CSPAN%3E%22me-email-link%22%3C%2FSPAN%3E%20%3CSPAN%3Etarget%3D%3C%2FSPAN%3E%3CSPAN%3E%22_blank%22%3C%2FSPAN%3E%20%3CSPAN%3Ehref%3D%3C%2FSPAN%3E%3CSPAN%3E%22%3CA%20href%3D%22https%3A%2F%2Fmysettings.lync.com%2Fpstnconferencing%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fmysettings.lync.com%2Fpstnconferencing%3C%2FA%3E%22%3C%2FSPAN%3E%20%3CSPAN%3Erel%3D%3C%2FSPAN%3E%3CSPAN%3E%22noreferrer%20noopener%22%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A14px%3B%20text-decoration%3Aunderline%3B%20color%3A%236264a7%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EReset%3C%2FSPAN%3E%20%3CSPAN%3EPIN%3C%2FSPAN%3E%20%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%3E%3C%2FDIV%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22margin-bottom%3A24px%3B%20margin-top%3A20px%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3CA%3E%3C%2FA%3E%3C%2FSPAN%3E%20%3CSPAN%3Eclass%3D%3C%2FSPAN%3E%3CSPAN%3E%22me-email-link%22%3C%2FSPAN%3E%20%3CSPAN%3Etarget%3D%3C%2FSPAN%3E%3CSPAN%3E%22_blank%22%3C%2FSPAN%3E%20%3CSPAN%3Ehref%3D%3C%2FSPAN%3E%3CSPAN%3E%22%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FJoinTeamsMeeting%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FJoinTeamsMeeting%3C%2FA%3E%22%3C%2FSPAN%3E%20%3CSPAN%3Erel%3D%3C%2FSPAN%3E%3CSPAN%3E%22noreferrer%20noopener%22%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A14px%3B%20text-decoration%3Aunderline%3B%20color%3A%236264a7%3B%20font-family%3A'Segoe%20UI'%2C'Helvetica%20Neue'%2CHelvetica%2CArial%2Csans-serif%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3BLearn%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EMore%3C%2FSPAN%3E%20%3CSPAN%3E%7C%3C%2FSPAN%3E%20%3CSPAN%3E%3CA%3E%3C%2FA%3E%3C%2FSPAN%3E%20%3CSPAN%3Eclass%3D%3C%2FSPAN%3E%3CSPAN%3E%22me-email-link%22%3C%2FSPAN%3E%20%3CSPAN%3Etarget%3D%3C%2FSPAN%3E%3CSPAN%3E%22_blank%22%3C%2FSPAN%3E%20%3CSPAN%3Ehref%3D%3C%2FSPAN%3E%3CSPAN%3E%22%3CA%20href%3D%22https%3A%2F%2Fteams.microsoft.com%2FmeetingOptions%2F%3ForganizerId%3D1cb22611-5110-42cb-8c6d-0b0ad201f187%26amp%3Bamp%3BtenantId%3Db61d9528-c1d8-4637-8ed5-f61771d5ca19%26amp%3Bamp%3BthreadId%3D19_meeting_MDM1OTgwYzUtZTU4My00Y2VkLTljYzgtNDAzYmQzYWFlYzJk%40thread.v2%26amp%3Bamp%3BmessageId%3D0%26amp%3Bamp%3Blanguage%3Den-US%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fteams.microsoft.com%2FmeetingOptions%2F%3ForganizerId%3D1cb22611-5110-42cb-8c6d-0b0ad201f187%26amp%3Bamp%3BtenantId%3Db61d9528-c1d8-4637-8ed5-f61771d5ca19%26amp%3Bamp%3BthreadId%3D19_meeting_MDM1OTgwYzUtZTU4My00Y2VkLTljYzgtNDAzYmQzYWFlYzJk%40thread.v2%26amp%3Bamp%3BmessageId%3D0%26amp%3Bamp%3Blanguage%3Den-US%3C%2FA%3E%22%3C%2FSPAN%3E%20%3CSPAN%3Erel%3D%3C%2FSPAN%3E%3CSPAN%3E%22noreferrer%20noopener%22%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A14px%3B%20text-decoration%3Aunderline%3B%20color%3A%236264a7%3B%20font-family%3A'Segoe%20UI'%2C'Helvetica%20Neue'%2CHelvetica%2CArial%2Csans-serif%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EMeeting%3C%2FSPAN%3E%20%3CSPAN%3Eoptions%3C%2FSPAN%3E%20%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%3E%3C%2FDIV%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A14px%3B%20margin-bottom%3A4px%3B%20font-family%3A'Segoe%20UI'%2C'Helvetica%20Neue'%2CHelvetica%2CArial%2Csans-serif%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%3E%3C%2FDIV%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22font-size%3A12px%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CDIV%3E%3C%2FDIV%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22width%3A100%25%3B%20height%3A20px%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B%3CSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%3Estyle%3D%3C%2FSPAN%3E%3CSPAN%3E%22white-space%3Anowrap%3B%20color%3A%235F5F5F%3B%20opacity%3A.36%22%3C%2FSPAN%3E%3CSPAN%3E%26gt%3B________________________________________________________________________________%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%20Stu%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

<NEWBIE>  We are working on a tool that would scan calendar events, read and then update the calendar event HTML body.   Our goal is to scan existing events for online Team's meeting and fix the URL's that were broken during mailbox migration.  

 

We were successful testing PATCH and replacing the existing event HTML event body using a very simple HTML content below. The Invoke-RestMethod -Method "PATCH" requires us to use a formatted JSON file like this which was successful at overwriting the existing events HTML body as a test.

Simple, successful JSON body below did update the existing event:

{
"body": {
"contentType": "HTML",
"content": "<HTML><div><B>This is bold text!</B> This is not bold text... </div></HTML>"
}
}

 

Our current issue is how do we add COMPLEX HTML content to the JSON Body.content property without breaking the JSON validation?  We need some guidance on how you would approach reading the existing event body, modifying an existing <A hyperlink within the content, then save the  corrected HTML back to the event.  

 

The below JSON body which was originally read from the event and had a <A hyperlink modified failed validation at line 4 which was the opening <HTML> text tag.  We have not found any documentation that helps with managing HTML within JSON.

 

{
"body": {
"contentType": "HTML",
"content": "<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="text/html; charset=us-ascii">
</head>
<body>
<br>
<div style="width:100%; height:20px"><span style="white-space:nowrap; color:#5F5F5F; opacity:.36">________________________________________________________________________________</span>
</div>
<div class="me-email-text" style="color:#252424; font-family:'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif">
<div style="margin-top:24px; margin-bottom:20px"><span style="font-size:24px; color:#252424">Microsoft Teams meeting</span>
</div>
<div style="margin-bottom:20px">
<div style="margin-top:0px; margin-bottom:0px; font-weight:bold"><span style="font-size:14px; color:#252424">Join on your computer or mobile app</span>
</div>
<a class="me-email-headline" href="https://teams.microsoft.com/l/meetup-join/19:meeting_MDM1OTgwYzUtZTU4My00Y2VkLTljYzgtNDAzYmQzYWFlYzJk@thread.v2/0?context=%7b%22Tid%22%3a%22b61d9528-c1d8-4637-8ed5-f61771d5ca19%22%2c%22Oid%22%3a%2211111111-2222-3333-4444-555555555555%22%7d" target="_blank" rel="noreferrer noopener" style="font-size:14px; font-family:'Segoe UI Semibold','Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif; text-decoration:underline; color:#6264a7">Click
here to join the meeting</a> </div>
<div style="margin-bottom:4px">
<div style="margin-bottom:4px"><span style="font-size:14px; color:#252424; font-weight:bold">Or call in (audio only)</span>
</div>
<div style="margin-bottom:4px"><a href="tel:+13236734336,,435656748# " style="font-size:14px; text-decoration:underline; color:#6264a7">+1 323-673-4336,,435656748#</a>
<span style="font-size:14px; color:#252424">&nbsp; United States, Los Angeles </span></div>
</div>
<span style="font-size:14px; color:#252424">Phone Conference ID: </span><span style="font-size:16px; color:#252424">435 656 748#
</span>
<div style="margin-bottom:20px"><a class="me-email-link" target="_blank" href="https://dialin.teams.microsoft.com/ff6397c2-bb2f-452d-af22-68cb43c8bbea?id=435656748" rel="noreferrer noopener" style="font-size:14px; text-decoration:underline; color:#6264a7; font-family:'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif">Find
a local number</a> | <a class="me-email-link" target="_blank" href="https://mysettings.lync.com/pstnconferencing" rel="noreferrer noopener" style="font-size:14px; text-decoration:underline; color:#6264a7">
Reset PIN</a> </div>
<div style="margin-bottom:24px; margin-top:20px"><a class="me-email-link" target="_blank" href="https://aka.ms/JoinTeamsMeeting" rel="noreferrer noopener" style="font-size:14px; text-decoration:underline; color:#6264a7; font-family:'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif">Learn
More</a> | <a class="me-email-link" target="_blank" href="https://teams.microsoft.com/meetingOptions/?organizerId=1cb22611-5110-42cb-8c6d-0b0ad201f187&amp;ten..." rel="noreferrer noopener" style="font-size:14px; text-decoration:underline; color:#6264a7; font-family:'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif">
Meeting options</a> </div>
</div>
<div style="font-size:14px; margin-bottom:4px; font-family:'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif">
</div>
<div style="font-size:12px"></div>
<div style="width:100%; height:20px"><span style="white-space:nowrap; color:#5F5F5F; opacity:.36">________________________________________________________________________________</span>
</div>
</body>
</html>
"
}
}

 

Thanks, Stu

 

0 Replies