SOLVED

Emails with attachments getting numbers add to the attachment

%3CLINGO-SUB%20id%3D%22lingo-sub-1524149%22%20slang%3D%22en-US%22%3EEmails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1524149%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20company%20has%20reports%20that%20get%20sent%20out%20daily.%20We%20would%20like%20to%20move%20those%20reports%20from%20getting%20sent%20to%20various%20users%20that%20need%20to%20report%20and%20want%20them%20to%20get%20sent%20to%20a%20teams%20channel.%20I%20set%20up%20a%20channel%20and%20did%20some%20test%20and%20when%20the%20report%20comes%20out%20it%20goes%20to%20the%20channel.%20I%20was%20wondering%20if%20there%20is%20a%20way%20for%20the%20attachment%20in%20the%20report%20not%20to%20get%20this%20weird%20strand%20of%20numbers%20listed%20in%20the%20image%20below%20but%20if%20it%20could%20just%20auto%20add%20the%20date%20to%20that%20attachment%20instead.%20This%20will%20make%20tracking%20the%20report%20easier%20for%20us%20under%20the%20files%20tab%20of%20the%20channel.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_0-1594832612490.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F205512iD6131609412415A8%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_0-1594832612490.png%22%20alt%3D%22Richard_Maltese_0-1594832612490.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_1-1594832686172.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F205513iCEA307BF1F91C379%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_1-1594832686172.png%22%20alt%3D%22Richard_Maltese_1-1594832686172.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1524149%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUser%20Interface%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1548741%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1548741%22%20slang%3D%22en-US%22%3EInstead%20of%20utilizing%20the%20email%20function%20to%20Teams%2C%20I%20would%20setup%20a%20Power%20Automate%20Flow%20that%20has%20a%20trigger%20that%20monitors%20an%20inbox%2C%20and%20a%20step%20that%20posts%20%2F%20uploads%20the%20file%20in%20it's%20place.%20Then%20you%20can%20name%20the%20file%20on%20the%20step%20you%20use%20to%20upload%20the%20file%20from%20the%20inbox%20trigger%20to%20the%20Team%20and%20utilize%20a%20date%20expression%20in%20the%20save%20to%20sharepoint%20(team)%20step..%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1548744%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1548744%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3BThank%20you%20for%20the%20reply.%20That%20is%20an%20option%20however%20we%20are%20trying%20to%20remove%20mailboxes%20and%20email%20distributions%20as%20much%20as%20possible.%20Its%20something%20we%20might%20test%20though.%20Thank%20you%20again!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1548769%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1548769%22%20slang%3D%22en-US%22%3EYou%20could%20have%20a%20flow%20trigger%20monitor%20the%20folder%20for%20the%20channel%20and%20rename%20the%20file%2C%20but%20it's%20a%20bit%20more%20difficult%20as%20the%20only%20way%20to%20rename%20a%20file%20in%20flow%20with%20SharePoint%20is%20through%20an%20http%20call%2C%20which%20I%20can%20find%20my%20action%20and%20how%20I%20do%20it%20if%20you%20want.%20So%20you%20could%20have%20it%20monitor%20for%20files%20starting%20with%20Report%20Subscriptions_%20and%20rename%20them%20to%20Report%20Subscriptions_date(etc.)%20%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20only%20issue%20I%20see%20with%20this%20method%20might%20be%20how%20that%20file%20will%20look%20in%20the%20chat%20pane%20in%20Teams%20as%20it%20might%20not%20update%2C%20but%20if%20all%20you%20are%20concerned%20with%20is%20the%20file%20name%20in%20the%20Files%20tab%2C%20this%20might%20be%20a%20solution%20to%20use%20instead%20of%20dealing%20with%20inbox%20flow.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1548772%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1548772%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F683647%22%20target%3D%22_blank%22%3E%40Richard_Maltese%3C%2FA%3E%26nbsp%3Bhere%20is%20the%20cap%20of%20the%20SharePoint%20http%20call%20action%20you%20can%20use%20to%20rename%20files.%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22flowrenmame.jpg%22%20style%3D%22width%3A%20656px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208288iAF82A90FF89C653E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22flowrenmame.jpg%22%20alt%3D%22flowrenmame.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1548774%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1548774%22%20slang%3D%22en-US%22%3EYeah%20that%20is%20more%20or%20so%20what%20we%20are%20worried%20about%20as%20it%20posts%20with%20the%20date%20as%20a%20new%20thread%20for%20each%20email%2Fattachment%20that%20comes%20into%20the%20channel.%20If%20you%20can%20share%20that%20with%20me%20that%20would%20be%20great.%3CBR%20%2F%3E%3CBR%20%2F%3EAgain%20thanks%20for%20the%20help%20on%20this!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1550105%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1550105%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3BI%20hate%20to%20bother%20you%20on%20this%20again.%20How%20did%20you%20get%20to%20this%20point%20of%20the%20flow%3F%20I'm%20new%20to%20using%20flow%20personally.%20If%20you%20can%20advise%20me%20how%20to%20do%20that%20it%20would%20be%20great%20or%20even%20point%20me%20in%20the%20right%20direction%20to%20learning%20more%20about%20Flow%20and%20how%20to%20get%20to%20this%20point.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1550234%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1550234%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F683647%22%20target%3D%22_blank%22%3E%40Richard_Maltese%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYoutube%20search%20for%20flow%20stuff%2C%20Laura%20Rogers%20Flow%20should%20net%20a%20ton%20of%20content%2C%20she%20does%20a%20good%20job%20of%20explaining.%20Here%20is%20a%20quick%20mock%20example%20of%20how%20I%20would%20do%20it%2C%20it's%20just%20a%20few%20steps%2C%20when%20a%20file%20in%20a%20folder%20is%20created%2C%20you%20add%20your%20SharePoint%20URL%20and%20folder%20the%20channel%20stores%20it's%20files%20and%20it%20will%20trigger.%20Then%20a%20condition%20to%20check%20if%20the%20file%20name%20starts%20with%20Reporting%20Schedules_%2C%20and%20if%20so%2C%20then%20you%20do%20an%20http%20sharepoint%20request%20to%20rename%20the%20file%2C%20I%20tried%20putting%20where%20you%20would%20put%20your%20document%20library%20names%20in%2C%20and%20at%20the%20end%2C%20I%20messed%20up%20the%20screenshot%2C%20but%20you%20would%20static%20in%20whatever%20you%20want%20the%20file%20name%20then%20the%20%22formatdatetime(utcnow()%2C'MM-dd-YYYY')%20expression%20would%20append%20the%20date%20you%20want%2C%20I%20don't%20know%20what%20you%20want%20here%2C%20but%20you%20would%20have%20to%20mess%20with%20expressions%20to%20get%20the%20name%20how%20you%20want%2C%20that%20example%20is%20to%20just%20name%20the%20file%20by%20the%20current%20date%20it%20runs.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20helps!%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22flowexamp.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208475i466494BA9F5F2A77%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22flowexamp.JPG%22%20alt%3D%22flowexamp.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585090%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585090%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3BI%20hate%20to%20bug%20you%20but%20I%20think%20i%20messed%20something%20up%20here.%20Below%20is%20my%20flow.%20However%20when%20testing%20or%20running%20it%2C%20it%20wont%20work%20i%20get%20the%20second%20image%20below.%20It%20shows%20it%20was%20successful%20but%20doesnt%20seem%20to%20be%20based%20off%20the%20message%20on%20the%20Yes%20Condition.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_0-1597256993161.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212091i2F6B92F8E8410FA2%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_0-1597256993161.png%22%20alt%3D%22Richard_Maltese_0-1597256993161.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_1-1597257080967.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212093iB9EA7F2BA54DB07A%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_1-1597257080967.png%22%20alt%3D%22Richard_Maltese_1-1597257080967.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585138%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585138%22%20slang%3D%22en-US%22%3EYour%20condition%20is%20not%20being%20met%2C%20so%20the%20begins%20with%20isn't%20matching%20or%20going%20true%20to%20run%20the%20HTTP%20request.%20Need%20to%20click%20on%20the%20trigger%20action%20there%20at%20the%20top%20and%20see%20what%20the%20filename%20is%20returning%20as%20for%20that%20flow%2C%20you%20might%20need%20to%20adjust%20that%20logic.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585247%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585247%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3BThanks%20for%20taking%20more%20time%20to%20help%20with%20this.%20So%20I'm%20checking%20it%20but%20the%20file%20name%20it%20returns%20is%26nbsp%3BUmVwb3J0IFN1YnNjcmlwdGlvbnNfMTA5NDY1MjEzNS54bHN4%20and%20the%20file%20identifier%20is%20showing%26nbsp%3B%25252fShared%252bDocuments%25252fNEST%252bSubcription%252bReport%25252fEmail%252bMessages%25252fReport%252bSubscriptions_1094652135.xlsx.%20Unfortunately%20I'm%20not%20sure%20what%20would%20need%20to%20be%20adjusted.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_0-1597260051104.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212101iA571EBB634836A38%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_0-1597260051104.png%22%20alt%3D%22Richard_Maltese_0-1597260051104.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585262%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585262%22%20slang%3D%22en-US%22%3EIf%20File%20Name%20with%20Extension%20isn't%20an%20option%20you'll%20have%20to%20put%20an%20%22Get%20File%20Properties%22%20action%20right%20under%20your%20trigger%20and%20pass%20the%20identifier%20to%20it.%20Then%20you%20should%20be%20able%20to%20reference%20the%20cleaner%20%22File%20Name%20with%20Extension%22%20Value%20in%20the%20condition.%20You'll%20also%20want%20to%20use%20that%20in%20the%20HTTP%20request%20etc.%20%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585431%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585431%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOkay%20trying%20what%20you%20recommended%20however%20it%20requires%20and%20ID%20under%20the%20get%20file%20properties%20so%20when%20digging%20into%20that%20one%20thing%20I%20found%20said%20to%20get%20the%20metadata%20file%20before%20the%20get%20file%20properties%20but%20that%20then%20wants%20map%20to%20a%20specific%20file%20in%20the%20folder.%26nbsp%3B%20Maybe%20there%20is%20something%20I'm%20over%20looking%20at%20this%20step.%20And%20every%20time%20I%20add%20that%20in%20I%20get%20the%20last%20screen%20shot%20here.%20From%20what%20i%20read%20that%20means%20somethings%20is%20broken%20in%20the%20process%20from%20the%20trigger%20to%20that%20next%20step.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_0-1597266702389.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212118i2CEC277993B2782A%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_0-1597266702389.png%22%20alt%3D%22Richard_Maltese_0-1597266702389.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_1-1597266721797.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212119i56808D3EB9BCB578%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_1-1597266721797.png%22%20alt%3D%22Richard_Maltese_1-1597266721797.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_3-1597268246635.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212124i5AD9EE2A09A9A469%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_3-1597268246635.png%22%20alt%3D%22Richard_Maltese_3-1597268246635.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585435%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585435%22%20slang%3D%22en-US%22%3EActually%2C%20replace%20your%20trigger%20with%20%22When%20a%20file%20is%20created%20(properties%20only)%22%20you%20don't%20need%20the%20entire%20file%20since%20you%20are%20using%20an%20http%20trigger%20to%20rename%20and%20you%20aren't%20doing%20anything%20with%20the%20binary%20bits.%20That%20one%20will%20supply%20the%20proper%20file%20name.%20%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585453%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585453%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3BThat%20doesnt%20let%20me%20get%20past%20the%20trigger%20it%20give%20me%20the%20enter%20a%20sharepoint%20message%20i%20posted%20above.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585456%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585456%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20I%20run%20the%20test%20it%20give%20me%20the%20following%20snip%20at%20the%20top.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_0-1597269725874.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212126i0BAC9A5B7A85B7A9%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_0-1597269725874.png%22%20alt%3D%22Richard_Maltese_0-1597269725874.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%20class%3D%22gtx-trans-icon%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585468%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585468%22%20slang%3D%22en-US%22%3EI%20don't%20know%20how%20you%20went%20about%20replacing%20the%20trigger%2C%20but%20it%20should%20work%20fine%2C%20you%20might%20just%20create%20a%20new%20flow%3F%20That%20trigger%20is%20the%20one%20you%20need%20to%20use%20thou%20it%20should%20be%20under%20the%20sharepoint%20connector%20when%20selecting%20your%20trigger.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585494%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585494%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%3CBR%20%2F%3ECreating%20a%20new%20one%20fixed%20that%20one%20message%20however%20still%20looks%20like%20its%20failing.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_0-1597270713278.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212127i87BC848981BFBEB1%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_0-1597270713278.png%22%20alt%3D%22Richard_Maltese_0-1597270713278.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20added%20back%20in%20the%20get%20file%20properties%20under%20the%20trigger%20as%20well%20and%20that%20still%20failed.%20I%20tried%20with%20Name%20and%20file%20name%20with%20extension.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Richard_Maltese_1-1597271141359.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212128i35AC42320CBDD729%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Richard_Maltese_1-1597271141359.png%22%20alt%3D%22Richard_Maltese_1-1597271141359.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585500%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585500%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20says%20Name%20in%20the%20condition%2C%20run%20it%20and%20see%20what%20Get%20File%20Properties%20is%20returning%20for%20those%20fields.%20(filename%20with%20extension)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1585532%22%20slang%3D%22en-US%22%3ERe%3A%20Emails%20with%20attachments%20getting%20numbers%20add%20to%20the%20attachment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1585532%22%20slang%3D%22en-US%22%3E%3CP%3ETried%20that%20with%20the%20with%20and%20with%20out%20the%20get%20file%20properties%20and%20still%20go%20the%20same%20result.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

My company has reports that get sent out daily. We would like to move those reports from getting sent to various users that need to report and want them to get sent to a teams channel. I set up a channel and did some test and when the report comes out it goes to the channel. I was wondering if there is a way for the attachment in the report not to get this weird strand of numbers listed in the image below but if it could just auto add the date to that attachment instead. This will make tracking the report easier for us under the files tab of the channel. 

Richard_Maltese_0-1594832612490.png

Richard_Maltese_1-1594832686172.png

 

 

18 Replies
Highlighted
Best Response confirmed by ThereseSolimeno (Microsoft)
Solution
Instead of utilizing the email function to Teams, I would setup a Power Automate Flow that has a trigger that monitors an inbox, and a step that posts / uploads the file in it's place. Then you can name the file on the step you use to upload the file from the inbox trigger to the Team and utilize a date expression in the save to sharepoint (team) step..
Highlighted

@Chris Webb Thank you for the reply. That is an option however we are trying to remove mailboxes and email distributions as much as possible. Its something we might test though. Thank you again!

Highlighted
You could have a flow trigger monitor the folder for the channel and rename the file, but it's a bit more difficult as the only way to rename a file in flow with SharePoint is through an http call, which I can find my action and how I do it if you want. So you could have it monitor for files starting with Report Subscriptions_ and rename them to Report Subscriptions_date(etc.)

The only issue I see with this method might be how that file will look in the chat pane in Teams as it might not update, but if all you are concerned with is the file name in the Files tab, this might be a solution to use instead of dealing with inbox flow.
Highlighted

@Richard_Maltese here is the cap of the SharePoint http call action you can use to rename files.
flowrenmame.jpg

Highlighted
Yeah that is more or so what we are worried about as it posts with the date as a new thread for each email/attachment that comes into the channel. If you can share that with me that would be great.

Again thanks for the help on this!
Highlighted

@Richard_Maltese 

Youtube search for flow stuff, Laura Rogers Flow should net a ton of content, she does a good job of explaining. Here is a quick mock example of how I would do it, it's just a few steps, when a file in a folder is created, you add your SharePoint URL and folder the channel stores it's files and it will trigger. Then a condition to check if the file name starts with Reporting Schedules_, and if so, then you do an http sharepoint request to rename the file, I tried putting where you would put your document library names in, and at the end, I messed up the screenshot, but you would static in whatever you want the file name then the "formatdatetime(utcnow(),'MM-dd-YYYY') expression would append the date you want, I don't know what you want here, but you would have to mess with expressions to get the name how you want, that example is to just name the file by the current date it runs. 

 

Hope this helps! 

 

flowexamp.JPG

Highlighted

@Chris Webb I hate to bug you but I think i messed something up here. Below is my flow. However when testing or running it, it wont work i get the second image below. It shows it was successful but doesnt seem to be based off the message on the Yes Condition. 

Richard_Maltese_0-1597256993161.png

Richard_Maltese_1-1597257080967.png

 

 

Highlighted
Your condition is not being met, so the begins with isn't matching or going true to run the HTTP request. Need to click on the trigger action there at the top and see what the filename is returning as for that flow, you might need to adjust that logic.
Highlighted

@Chris Webb Thanks for taking more time to help with this. So I'm checking it but the file name it returns is UmVwb3J0IFN1YnNjcmlwdGlvbnNfMTA5NDY1MjEzNS54bHN4 and the file identifier is showing %252fShared%2bDocuments%252fNEST%2bSubcription%2bReport%252fEmail%2bMessages%252fReport%2bSubscriptions_1094652135.xlsx. Unfortunately I'm not sure what would need to be adjusted. 

Richard_Maltese_0-1597260051104.png

 

Highlighted
If File Name with Extension isn't an option you'll have to put an "Get File Properties" action right under your trigger and pass the identifier to it. Then you should be able to reference the cleaner "File Name with Extension" Value in the condition. You'll also want to use that in the HTTP request etc.
Highlighted

@Chris Webb 

Okay trying what you recommended however it requires and ID under the get file properties so when digging into that one thing I found said to get the metadata file before the get file properties but that then wants map to a specific file in the folder.  Maybe there is something I'm over looking at this step. And every time I add that in I get the last screen shot here. From what i read that means somethings is broken in the process from the trigger to that next step. 

Richard_Maltese_0-1597266702389.png

Richard_Maltese_1-1597266721797.png

 

Richard_Maltese_3-1597268246635.png

 

Highlighted
Actually, replace your trigger with "When a file is created (properties only)" you don't need the entire file since you are using an http trigger to rename and you aren't doing anything with the binary bits. That one will supply the proper file name.
Highlighted

@Chris Webb That doesnt let me get past the trigger it give me the enter a sharepoint message i posted above. 

Highlighted

If I run the test it give me the following snip at the top. 

Richard_Maltese_0-1597269725874.png

 

 
Highlighted
I don't know how you went about replacing the trigger, but it should work fine, you might just create a new flow? That trigger is the one you need to use thou it should be under the sharepoint connector when selecting your trigger.
Highlighted

@Chris Webb
Creating a new one fixed that one message however still looks like its failing. 

Richard_Maltese_0-1597270713278.png

 

I added back in the get file properties under the trigger as well and that still failed. I tried with Name and file name with extension. 

Richard_Maltese_1-1597271141359.png

 


 

Highlighted

It says Name in the condition, run it and see what Get File Properties is returning for those fields. (filename with extension)

Highlighted

Tried that with the with and with out the get file properties and still go the same result.