Concat "Todays Date" for File Name - Save Attachment - Help

%3CLINGO-SUB%20id%3D%22lingo-sub-140425%22%20slang%3D%22en-US%22%3EConcat%20%22Todays%20Date%22%20for%20File%20Name%20-%20Save%20Attachment%20-%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140425%22%20slang%3D%22en-US%22%3E%3CP%3EAll%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECan%20anyone%20give%20me%20some%20quick%20tips%20or%20is%20it%20even%20possible.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EScenario%3A%3C%2FP%3E%0A%3CP%3EReport%20to%20a%20mailbox%20comes%20everyday%2C%20named%20the%20same.%3C%2FP%3E%0A%3CP%3EWant%20to%20remove%20the%20report%20from%20the%20email%2C%20save%20it%20to%20a%20SharePoint%20Site%20with%20a%20time%20date.%3C%2FP%3E%0A%3CP%3ESimple%20attempts%20to%20concat%20a%20text%20name%20of%20the%20file%20and%20a%20date%20are%20not%20working%20out%20real%20well.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnyone%20help%20a%20Flow%20Noob%3F%20Please%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-140425%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-140905%22%20slang%3D%22en-US%22%3ERe%3A%20Concat%20%22Todays%20Date%22%20for%20File%20Name%20-%20Save%20Attachment%20-%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140905%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F16657%22%20target%3D%22_blank%22%3E%40Sandy%20Ussia%3C%2FA%3E%20Really%20wish%20I%20would%20have%20checked%20back%20on%20this!%20I%20spent%20my%20Saturday%20afternoon%20coming%20up%20with%20something%20similar.%20Did%20not%20know%20about%20the%20%22Convert%20Time%20Zone%22%20function!%20That%20looks%20like%20a%20handy%20one!%20I%20ended%20up%20using%20the%20%22Name%22%20and%20%22Date%20Received%22%20in%20the%20create%20file%20function.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20responding%20though.%20As%20usual%20I%20learned%20a%20few%20things.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-140721%22%20slang%3D%22en-US%22%3ERe%3A%20Concat%20%22Todays%20Date%22%20for%20File%20Name%20-%20Save%20Attachment%20-%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140721%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F92374%22%20target%3D%22_blank%22%3E%40Rob%20Bowman%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20quick%20way%20to%20do%20this%20would%20be%20to%20go%20to%20the%20appropriate%20SharePoint%20document%20library%2C%20and%20Create%20a%20Flow%2C%20using%20the%20Flow%20template%20called%20%22%3CSPAN%3ESave%20my%20email%20attachments%20to%20a%20SharePoint%20document%20library%3C%2FSPAN%3E%22.%20This%20template%20should%20automatically%20create%20an%20Apply%20to%20Each%20Attachment%20loop%2C%20with%20a%20Create%20File%20action%20inside%20it.%20In%20the%20Create%20File%2C%20the%20default%20filename%20is%20the%20%22Name%22%20which%20comes%20from%20that%20attachment.%20You%20can%20click%20in%20that%20area%20to%20append%20another%20field%20to%20the%20filename%2C%20and%20select%20Received%20Time%20from%20the%20Dynamic%20Content%20dialog%20(you%20may%20need%20to%20click%20See%20More%20next%20to%20the%20On%20New%20Email%20header%20in%20the%20Dynamic%20Content%20dialog%2C%20to%20see%20more%20fields%20available).%20That%20should%20do%20it%20-%20does%20this%20help%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%20that%20this%20will%20append%20the%20UTC%20time%2C%20which%20is%20how%20O365%20stores%20things.%20If%20you%20want%20the%20time%20stamp%20to%20be%20your%20local%20time%2C%20you'd%20need%20to%20add%20some%20steps%20(see%20my%20screenshot%20below)%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EWithin%20the%20Apply%20to%20Each%20Attachment%20loop%2C%20click%20the%20%2B%20icon%20just%20above%20the%20Create%20File%20action%2C%20and%20find%20the%20action%20called%20Convert%20Time%20Zone%20(it's%20one%20of%20the%20relatively%20new%20Date%20Time%20connector%20actions).%20You'll%20be%20prompted%20for%20a%20Base%20Time%20(select%20the%20Received%20Time%20as%20above)%2C%20Source%20time%20zone%20(which%20is%20UTC)%2C%20and%20Destination%20time%20zone%20(yours)%20and%20format%20(whatever%20you%20want%20from%20the%20list).%3C%2FLI%3E%0A%3CLI%3EI%20found%20that%20the%20result%20of%20the%20Convert%20Time%20Zone%20action%20doesn't%20seem%20to%20be%20available%20to%20add%20to%20the%20file%20name%20in%20the%20Create%20File%20step%2C%20but%20you%20can%20add%20a%20Compose%20action%20just%20after%20Convert%20Time%20Zone%2C%20and%20for%20the%20Input%20select%20Converted%20Time%20from%20the%20Dynamic%20Content%20dialog.%3C%2FLI%3E%0A%3CLI%3EThen%20in%20the%20Create%20File%20filename%2C%20instead%20of%20Received%20Time%2C%20select%20Output%20(from%20the%20Compose%20action)%20to%20append%20to%20Name%20(I%20added%20a%20space%20also%2C%20for%20legibility).%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20638px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F26236iC2F3B455D6EA8B8B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22DateTime%20stamp%20in%20attachment%20filename.png%22%20title%3D%22DateTime%20stamp%20in%20attachment%20filename.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDoes%20this%20give%20you%20what%20you're%20after%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESandy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2223022%22%20slang%3D%22en-US%22%3ERe%3A%20Concat%20%22Todays%20Date%22%20for%20File%20Name%20-%20Save%20Attachment%20-%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2223022%22%20slang%3D%22en-US%22%3EHello%20Sandy%2C%20hello%20Rob%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20the%20same%20requirement.%20I%20tried%20to%20add%20the%20attachments%20filename%2BReceived%20Time.%20But%20now%20it%20seems%20that%20the%20flow%20shreds%20the%20file%20and%20the%20file%20is%20no%20longer%20a%20PDF%20file%20that%20can%20be%20opened%20it%20is%20an%20unknown%20filetype%20with%20a%20filename%20that%20did%20not%20reflect%20the%20expected%20filename%20as%20configured%20in%20the%20create%20file%20section%20in%20my%20flow%3A%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2228759%22%20slang%3D%22en-US%22%3ERe%3A%20Concat%20%22Todays%20Date%22%20for%20File%20Name%20-%20Save%20Attachment%20-%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2228759%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F668816%22%20target%3D%22_blank%22%3E%40ARadtke%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDon't%20forget%20to%20add%20%3CSTRONG%3E.pdf%3C%2FSTRONG%3E%20to%20the%20back%20of%20the%20filename%20if%20you%20haven't%20already%20done%20so.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2238018%22%20slang%3D%22en-US%22%3ERe%3A%20Concat%20%22Todays%20Date%22%20for%20File%20Name%20-%20Save%20Attachment%20-%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2238018%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89704%22%20target%3D%22_blank%22%3E%40Damien%20Rosario%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20having%20the%20same%20issue%20with%20my%20attachment%20filename.%26nbsp%3B%26nbsp%3BI%20have%202%20files%20with%20the%20same%20name%20coming%20into%20a%20mailbox%20as%20attachments%2C%20one%20is%20a%20.pdf%20and%20the%20other%20is%20a%20.xlsx.%26nbsp%3B%20I%20want%26nbsp%3Bto%20remove%20the%20files%20from%20the%20email%2C%20and%20save%20them%20to%20a%20SharePoint%20library%20with%20today's%20date%2Ftime%20added%20to%20the%20filename.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrent%20attachment%20filenames%3A%3C%2FP%3E%3CP%3Eattachmentname.pdf%3C%2FP%3E%3CP%3Eattachmentname.xlsx%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDesired%20attachment%20filenames%20in%20SPOL%3A%3C%2FP%3E%3CP%3Eattachmentname_03-26-2021-2-10-PM.pdf%3C%2FP%3E%3CP%3Eattachmentname_03-26-2021-2-10-PM.xlsx%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20my%20Create%20File%20action%2C%20in%20the%20File%20Name%20field%2C%20I've%20tried%20using%20'Attachments%20Name'_'Received%20Time'%20dynamic%20content%20dialogue.%26nbsp%3B%20%26nbsp%3B%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%22Justin_Gangl_0-1616774028816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267489iC3CFA9E2BADFCBC4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Justin_Gangl_0-1616774028816.png%22%20alt%3D%22Justin_Gangl_0-1616774028816.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThat%20appends%20the%20date%20after%20the%20file%20extension%2C%26nbsp%3Battachmentname.pdf_03-26-2021-2-10-PM%2C%20giving%20an%20unknown%20filetype.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20add%20.pdf%20in%20the%20File%20Name%2C%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Justin_Gangl_1-1616774398624.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267493i6ACE3E36BEB6043E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Justin_Gangl_1-1616774398624.png%22%20alt%3D%22Justin_Gangl_1-1616774398624.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ethen%20I%20get%20a%20usable%20filename%2C%26nbsp%3Battachmentname.pdf_03-26-2021-2-10-PM.pdf%2C%20but%20it%20obviously%20changes%20my%20xlsx%20file%20to%20a%20pdf%20extension%20as%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20thoughts%20on%20how%20to%20accomplish%20this%3F%26nbsp%3B%20Appreciate%20any%20help%20you%20can%20provide.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2239781%22%20slang%3D%22en-US%22%3ERe%3A%20Concat%20%22Todays%20Date%22%20for%20File%20Name%20-%20Save%20Attachment%20-%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2239781%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1009708%22%20target%3D%22_blank%22%3E%40Justin_Gangl%3C%2FA%3E%26nbsp%3Byou%20can%20do%20this%20if%20you%20split%20the%20attachment%20name%20on%20the%20.dot.%20You%20need%20several%20Compose%20controls%20as%20shown%20below%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%221-Flow.png%22%20style%3D%22width%3A%20585px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267727i085C4B1968F1FF04%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%221-Flow.png%22%20alt%3D%221-Flow.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-center%22%20image-alt%3D%222-Flow.png%22%20style%3D%22width%3A%20616px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267728i9B9E35626BAB6582%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222-Flow.png%22%20alt%3D%222-Flow.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-center%22%20image-alt%3D%223-Flow.png%22%20style%3D%22width%3A%20587px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267730iD8686E214CD70B03%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%223-Flow.png%22%20alt%3D%223-Flow.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-center%22%20image-alt%3D%224-Flow.png%22%20style%3D%22width%3A%20594px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267729iEE367CA8D0AC03AD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%224-Flow.png%22%20alt%3D%224-Flow.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-center%22%20image-alt%3D%225-Flow.png%22%20style%3D%22width%3A%20842px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267731iDA3CC4C9F41947D4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%225-Flow.png%22%20alt%3D%225-Flow.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23006400%22%3EMicrosoft%20Power%20Automate%20Community%20Super%20User.%3CBR%20%2F%3EIf%20I've%20answered%20your%20question%20or%20solved%20your%20problem%2C%20please%20mark%20this%20question%20as%20answered.%20This%20helps%20others%20who%20have%20the%20same%20question%20find%20a%20solution%20quickly%20via%20the%20forum%20search.%20If%20you%20liked%20my%20response%2C%20please%20consider%20giving%20it%20a%20thumbs%20up.%20Thanks.%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2240432%22%20slang%3D%22en-US%22%3ERe%3A%20Concat%20%22Todays%20Date%22%20for%20File%20Name%20-%20Save%20Attachment%20-%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2240432%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1009708%22%20target%3D%22_blank%22%3E%40Justin_Gangl%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob's%20solution%20covers%20a%20solution%20pretty%20well%20in%20the%20order%20you%20want%20to%20see%20it%20in.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlternatively%2C%20you%20could%20put%20the%20received%20date%20at%20the%20front%20of%20the%20name%20followed%20by%20the%20file%20name.%20This%20way%20the%20extension%20will%20always%20work%20and%20will%20require%20no%20additional%20actions.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%20and%20best%20wishes%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2242373%22%20slang%3D%22en-US%22%3ERe%3A%20Concat%20%22Todays%20Date%22%20for%20File%20Name%20-%20Save%20Attachment%20-%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2242373%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40RobElliott%3C%2FA%3E%3CBR%20%2F%3EPerfect!%20This%20solves%20my%20issue.%20Thanks%20so%20much!%3C%2FLINGO-BODY%3E
Contributor

All,

 

Can anyone give me some quick tips or is it even possible.

 

Scenario:

Report to a mailbox comes everyday, named the same.

Want to remove the report from the email, save it to a SharePoint Site with a time date.

Simple attempts to concat a text name of the file and a date are not working out real well.

 

Anyone help a Flow Noob? Please?

9 Replies

Hi @Rob Bowman,

 

A quick way to do this would be to go to the appropriate SharePoint document library, and Create a Flow, using the Flow template called "Save my email attachments to a SharePoint document library". This template should automatically create an Apply to Each Attachment loop, with a Create File action inside it. In the Create File, the default filename is the "Name" which comes from that attachment. You can click in that area to append another field to the filename, and select Received Time from the Dynamic Content dialog (you may need to click See More next to the On New Email header in the Dynamic Content dialog, to see more fields available). That should do it - does this help?

 

Note that this will append the UTC time, which is how O365 stores things. If you want the time stamp to be your local time, you'd need to add some steps (see my screenshot below):

  • Within the Apply to Each Attachment loop, click the + icon just above the Create File action, and find the action called Convert Time Zone (it's one of the relatively new Date Time connector actions). You'll be prompted for a Base Time (select the Received Time as above), Source time zone (which is UTC), and Destination time zone (yours) and format (whatever you want from the list).
  • I found that the result of the Convert Time Zone action doesn't seem to be available to add to the file name in the Create File step, but you can add a Compose action just after Convert Time Zone, and for the Input select Converted Time from the Dynamic Content dialog.
  • Then in the Create File filename, instead of Received Time, select Output (from the Compose action) to append to Name (I added a space also, for legibility).

DateTime stamp in attachment filename.png 

 

Does this give you what you're after?

 

Sandy

@Sandy Ussia Really wish I would have checked back on this! I spent my Saturday afternoon coming up with something similar. Did not know about the "Convert Time Zone" function! That looks like a handy one! I ended up using the "Name" and "Date Received" in the create file function.

 

Thank you for responding though. As usual I learned a few things. :)

Hello Sandy, hello Rob,

I have the same requirement. I tried to add the attachments filename+Received Time. But now it seems that the flow shreds the file and the file is no longer a PDF file that can be opened it is an unknown filetype with a filename that did not reflect the expected filename as configured in the create file section in my flow:

Hi @ARadtke 

 

Don't forget to add .pdf to the back of the filename if you haven't already done so.

 

Cheers

Damien

Hi @Damien Rosario ,

 

I'm having the same issue with my attachment filename.  I have 2 files with the same name coming into a mailbox as attachments, one is a .pdf and the other is a .xlsx.  I want to remove the files from the email, and save them to a SharePoint library with today's date/time added to the filename.

 

Current attachment filenames:

attachmentname.pdf

attachmentname.xlsx

 

Desired attachment filenames in SPOL:

attachmentname_03-26-2021-2-10-PM.pdf

attachmentname_03-26-2021-2-10-PM.xlsx

 

In my Create File action, in the File Name field, I've tried using 'Attachments Name'_'Received Time' dynamic content dialogue.   

 

Justin_Gangl_0-1616774028816.png

That appends the date after the file extension, attachmentname.pdf_03-26-2021-2-10-PM, giving an unknown filetype.

 

If I add .pdf in the File Name,  

Justin_Gangl_1-1616774398624.png

then I get a usable filename, attachmentname.pdf_03-26-2021-2-10-PM.pdf, but it obviously changes my xlsx file to a pdf extension as well.

 

Any thoughts on how to accomplish this?  Appreciate any help you can provide. 

 

@Justin_Gangl you can do this if you split the attachment name on the .dot. You need several Compose controls as shown below:

1-Flow.png

 

2-Flow.png

 

3-Flow.png

 

4-Flow.png

 

5-Flow.png

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User.
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

Hi @Justin_Gangl 

 

Rob's solution covers a solution pretty well in the order you want to see it in.

 

Alternatively, you could put the received date at the front of the name followed by the file name. This way the extension will always work and will require no additional actions.

 

Cheers and best wishes

Damien

@RobElliott
Perfect! This solves my issue. Thanks so much!