Home

Celebrating milestones with SharePoint, Flow, and Delve

%3CLINGO-SUB%20id%3D%22lingo-sub-175433%22%20slang%3D%22en-US%22%3ECelebrating%20milestones%20with%20SharePoint%2C%20Flow%2C%20and%20Delve%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175433%22%20slang%3D%22en-US%22%3E%3CP%3ERecently%2C%20I%E2%80%99ve%20been%20asked%20if%20there%20was%20a%20simple%20way%20to%20provide%20birthday%20reminders%20on%20a%20SharePoint%20intranet%20without%20any%20customizations.%26nbsp%3B%20Well%2C%20after%20looking%20at%20some%20of%20the%20options%20available%20in%20SharePoint%20Modern%20sites%2C%20it%E2%80%99s%20possible%20(with%20the%20help%20from%20Delve%20and%20Microsoft%20Flow).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20article%2C%20I%20demonstrate%20how%20to%20showcase%20the%20names%20of%20people%20who%20have%20a%20birthday%20today.%26nbsp%3B%20I%20have%20not%20included%20the%20year%20or%20age%20as%20most%20of%20us%20don%E2%80%99t%20age%20beyond%2025%20anyways.%26nbsp%3B%20One%20thing%20that%20I%20really%20like%20about%20this%20approach%20is%20that%20the%20birth%20date%20is%20set%20in%20Delve%20and%20give%20each%20user%20the%20choice%20whether%20to%20share%20it%20with%20others%20or%20not.%26nbsp%3B%20If%20not%2C%20then%20their%20name%20will%20not%20appear%20on%20the%20SharePoint%20site.%26nbsp%3B%20Other%20items%20that%20this%20solution%20can%20be%20extended%20to%20is%20to%20use%20the%20hire%20date%20and%20highlight%20specific%20anniversary%20milestones.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESetting%20the%20Birthday%20in%20Delve%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EAs%20I%E2%80%99ve%20mentioned%20above%2C%20one%20of%20the%20first%20steps%20was%20to%20set%20the%20birthdays%20in%20Delve.%26nbsp%3B%20To%20set%20your%20birthday%2C%20click%20the%20%3CEM%3EUpdate%20profile%20%3C%2FEM%3Ebutton%20when%20you%20first%20visit%20your%20profile%20page.%26nbsp%3B%20This%20will%20take%20you%20to%20a%20page%20that%20looks%20like%20the%20one%20below.%26nbsp%3B%20Each%20user%20can%20do%20this%20themselves.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30839iF80A6173584EE46F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Delve.PNG%22%20title%3D%22Delve.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhat%20is%20important%20is%20that%20the%20icon%20on%20the%20right%20should%20show%20a%20globe%20to%20indicate%20that%20everyone%20can%20see%20the%20birthday.%26nbsp%3B%20If%20it%E2%80%99s%20set%20to%20a%20lock%2C%20then%20only%20the%20user%20themselves%20can%20see%20it.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20363px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30840i56D1115B190E0435%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Birthday.PNG%22%20title%3D%22Birthday.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%E2%80%99s%20all%20you%20need%20to%20do%20in%20order%20for%20your%20birthday%20to%20show%20up%20in%20SharePoint.%26nbsp%3B%20You%20can%20also%20use%20the%20employee's%20Hire%20Date%20to%20display%20work%20anniversaries.%26nbsp%3B%20To%20edit%20a%20user's%20hire%20date%2C%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ENavigate%20to%20the%20SharePoint%20admin%20center%20(https%3A%2F%2F%3CYOUR%20domain%3D%22%22%3E-admin.sharepoint.com%2F_layouts%2F15%2Ftenantprofileadmin%2Fmanageuserprofileserviceapplication.aspx)%3C%2FYOUR%3E%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CEM%3EManage%20User%20Profiles%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3EUsing%20the%20Find%20profiles%2C%20edit%20search%20for%20a%20user%20who's%20hire%20date%20you%20want%20to%20set%20or%20change%3C%2FLI%3E%0A%3CLI%3EHover%20on%20top%20of%20the%20name%20of%20the%20user%20you%20want%20to%20change%20and%20from%20the%20drop-down%2C%20select%26nbsp%3B%3CEM%3E%3CEM%3EEdit%20My%20Profile%3C%2FEM%3E%3C%2FEM%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20863px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30903i6B0B802C1BA44ADA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Edit%20Profile.PNG%22%20title%3D%22Edit%20Profile.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CP%3E%26nbsp%3BScroll%20down%20and%20select%20a%20date%20for%26nbsp%3B%3CEM%3EHire%20Date%3C%2FEM%3E.%26nbsp%3B%20Make%20sure%20that%20%3CEM%3EEveryone%3C%2FEM%3E%20is%20selected%26nbsp%3Bin%20the%20drop-down%20beside%20the%20date.%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20770px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30904iB6DD0856CF69B0B8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Hire%20Date.PNG%22%20title%3D%22Hire%20Date.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3ENB%3A%20Now%20that%20you%20know%20my%20birthday%2C%20I%20expect%20at%20least%20a%20birthday%20card%20or%20like%20on%20this%20article%20on%20that%20day%20%3Asmiling_face_with_smiling_eyes%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECreating%20the%20Celebrations%20web%20part%20in%20SharePoint%20and%20List%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20I%20decided%20to%20go%20with%20a%20no-code%20solution%2C%20I%20had%20to%20stick%20with%20one%20of%20the%20out%20of%20the%20box%20web%20parts%20that%20would%20provide%20a%20decent%20look.%26nbsp%3B%20So%2C%20I%20actually%20chose%20an%20events%20list.%26nbsp%3B%20I%20created%20a%20new%20list%20called%20%3CEM%3ECelebrations%3C%2FEM%3E%2C%20which%20is%20an%20out%20of%20the%20box%20Calendar%20list%20and%20linked%20it%20to%20the%20Events%20web%20part%20as%20shown%20on%20the%20right%20side%20of%20the%20page.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30841iBFF46F9492CDAF33%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Modern.PNG%22%20title%3D%22Modern.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20flow%20ensures%20that%20only%20users%20who%20have%20entered%20their%20birthdays%20and%20have%20a%20birthday%20on%20a%20specific%20day%20show%20up%20in%20the%20list%20that%20day.%26nbsp%3B%20I%20also%20uploaded%20an%20image%20called%20%3CEM%3Econfetti.png%20%3C%2FEM%3Eonto%20my%20site%20to%20be%20used%20as%20a%20banner%20image%20for%20the%20events.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EBuilding%20the%20Flow%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20flow%20is%20somewhat%20straight%20forward%20and%20is%20broken%20down%20into%20three%20parts%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EDaily%20timer%20trigger%20to%20kick-off%20the%20workflow%3C%2FLI%3E%0A%3CLI%3EDelete%20all%20existing%20celebrations%20in%20the%20%3CEM%3ECelebrations%3C%2FEM%3E%20list%3C%2FLI%3E%0A%3CLI%3EAdd%20users%20who%E2%80%99s%20birth%20day%20and%20month%20match%20today%E2%80%99s%20date%20into%20the%20%3CEM%3ECelebrations%3C%2FEM%3E%20list%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CEM%3ETrigger%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EThe%20Flow%20begins%20with%20a%20trigger%20being%20set%20to%20kick-off%20the%20flow%20each%20day%20at%20midnight.%26nbsp%3B%20Make%20sure%20to%20set%20your%20time%20zone%2C%20otherwise%20you%20may%20have%20birthdays%20start%20and%20end%20time%20wrapping%20a%20calendar%20day.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20613px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30842i0D65ACCA8942D74E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Trigger.PNG%22%20title%3D%22Trigger.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EDelete%20Items%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3ENothing%20fancy%20here.%26nbsp%3B%20Just%20a%20loop%20that%20iterates%20through%20the%20%3CEM%3ECelebrations%20%3C%2FEM%3Elist%20and%20deletes%20all%20the%20items%20found%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%20style%3D%22width%3A%20673px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30843i3D7434E837078190%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22DeleteItems.png%22%20title%3D%22DeleteItems.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EAdd%20Celebrations%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EThis%20is%20where%20the%20good%20stuff%20happens.%26nbsp%3B%20The%20action%20starts%20by%20searching%20all%20Office%20365%20users%20that%20match%20a%20given%20term%20by%20display%20name%2C%20given%20name%2C%20surname%2C%20mail%2C%20mail%20nickname%20or%20user%20principal%20name.%26nbsp%3B%20To%20keep%20it%20simple%2C%20I%E2%80%99ve%20included%20the%20search%20term%20%3CEM%3Ecom%3C%2FEM%3E%2C%20which%20appears%20in%20everyone%E2%80%99s%20email.%3C%2FP%3E%0A%3CP%3E%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-center%22%20style%3D%22width%3A%20650px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30844i4B319E09CB70583D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Search.PNG%22%20title%3D%22Search.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENext%2C%20I%20use%20a%20comparison%20between%20today's%20date%20and%20a%20date%20that%20is%20available%20in%20the%20user's%20profile.%26nbsp%3B%20As%20I've%20mentioned%20earlier%2C%20I%20have%20the%20user's%20birthday%20and%20hire%20date%20that%20I%20can%20set%20and%20to%20no%20surprise%2C%20the%20same%20fields%20are%20available%20as%20dynamic%20content%20from%20the%20%3CI%3EGet%20user%20profile%20(V2)%3C%2FI%3E%20action.%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20414px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30905i1A424A09196AF0E7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Fields.PNG%22%20title%3D%22Fields.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20article%2C%20I%20check%20to%20see%20if%20the%20birth%20day%20and%20month%20are%20today%20and%20that%20the%20birth%20year%20is%20not%200001%2C%20which%20indicates%20that%20the%20user%20didn%E2%80%99t%20provide%20a%20birthday%20in%20their%20Delve%20profile.%26nbsp%3B%20To%20do%20so%2C%20I%E2%80%99ve%20used%20the%20following%20expression%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%40and(equals(substring(body('Get_user_profile_(V2)')%3F%5B'birthday'%5D%2C%205%2C%205)%20%2C%20substring(utcnow()%2C5%2C5))%2C%20not(equals(int(substring(body('Get_user_profile_(V2)')%3F%5B'birthday'%5D%2C0%2C4))%2C%200001)))%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20finally%2C%20I%20add%20an%20item%20for%20each%20match%20into%20the%20%3CEM%3ECelebrations%20%3C%2FEM%3Elist.%26nbsp%3B%20For%20the%20Start%20Time%20and%20End%20Time%2C%20I%20set%20them%20to%20go%20from%20midnight%20until%20just%20before%20midnight%20the%20next%20day%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStart%20Time%20%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Econcat(substring(utcnow()%2C0%2C10)%2C'T00%3A00%3A00Z')%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3BEnd%20Time%3C%2FP%3E%0A%3CPRE%3Econcat(substring(utcnow()%2C0%2C10)%2C'T23%3A59%3A59Z')%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20617px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30847iF872B9E6B637C616%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CreateItem.PNG%22%20title%3D%22CreateItem.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERemember%20the%20%3CEM%3Econfetti.jpg%3C%2FEM%3E%20image%20I%20uploaded%20into%20the%20document%20library%3F%26nbsp%3B%20You%20can%20see%20it%20being%20referenced%20in%20the%20Banner%20URL%20field.%26nbsp%3B%20This%20image%20appears%20at%20the%20top%20of%20each%20celebration%20event%20created.%3C%2FP%3E%0A%3CP%3E%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-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30846i432DC524612089B2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Event%20Page.PNG%22%20title%3D%22Event%20Page.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ELimitations%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWith%20the%20modern%20Events%20web%20part%2C%20when%20there%20are%20no%20celebrations%20on%20a%20day%2C%20it%20shows%20the%20three%20default%20events%2C%20which%20is%20not%20ideal.%26nbsp%3B%20I%E2%80%99d%20rather%20the%20entire%20webs%20part%20be%20hidden%20in%20that%20case.%26nbsp%3B%20As%20well%2C%20the%20Flow%20action%20does%20not%20allow%20to%20specify%20full-day%20events%2C%20requiring%20you%20to%20enter%20a%20start%20and%20end%20time.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-175433%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-356410%22%20slang%3D%22en-US%22%3ERe%3A%20Celebrating%20milestones%20with%20SharePoint%2C%20Flow%2C%20and%20Delve%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-356410%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20having%20trouble%20get%20a%20list%20of%20all%20the%20users.%26nbsp%3B%20I've%20used%20the%20%22org%22%20criteria%20similar%20to%20your%20%22com%22%20but%20it%20looks%20like%20they've%20changed%20the%20behavior.%26nbsp%3B%20I%20think%20they%20are%20screening%20out%20the%20last%20part%20of%20the%20email%20address%20and%20looking%20for%20things%20before%20the%26nbsp%3B%40%20sign.%26nbsp%3B%20Any%20ideas%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-329339%22%20slang%3D%22en-US%22%3ERe%3A%20Celebrating%20milestones%20with%20SharePoint%2C%20Flow%2C%20and%20Delve%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-329339%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Haniel%2C%3C%2FP%3E%3CP%3EI%20like%20this%20non-coded%20way%20of%20showing%20Birthdays%20on%20a%20SP%20site%20but%20I%20have%20an%20issue.%20In%20the%20part%20when%26nbsp%3B%3CI%3EGet%20user%20profile%20(V2)%26nbsp%3B%3C%2FI%3Ecomes%20in%2C%20I%20can't%20find%20Birthday%20inside%20%22Dynamic%20Content%22.%20Are%20you%20familiar%20with%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-233987%22%20slang%3D%22en-US%22%3ERe%3A%20Celebrating%20milestones%20with%20SharePoint%2C%20Flow%2C%20and%20Delve%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-233987%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%2F2834%22%20target%3D%22_blank%22%3E%40Ronald%20Rohlfs%3C%2FA%3E%2C%20I%20haven't%20come%20across%20this%20issue%20as%20my%20tenant%20doesn't%20have%20that%20many%20users.%26nbsp%3B%20Did%20anyone%20else%20experience%20this%20limitation%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-204442%22%20slang%3D%22en-US%22%3ERe%3A%20Celebrating%20milestones%20with%20SharePoint%2C%20Flow%2C%20and%20Delve%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-204442%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20looks%20like%20a%20great%20idea%2C%20and%20I'm%20very%20hopeful%20I%20can%20use%20it.%20However%2C%20the%20Search%20for%20Users%20action%20is%20not%20performing%20as%20your%20article%20suggests.%20You%20use%20%22com%22%20as%20the%20search%20term%20assuming%20it%20will%20return%20all%20users%20since%20all%20users%20have%20.com%20in%20their%20e-mail%20address.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20not%20working%20for%20me.%20Using%20com%20as%20the%20search%20term%20only%20returns%2026%20users%20instead%20of%20the%20expected%20~5000.%20It%20appears%20the%20domain%20part%20of%20the%20mail%20or%20user%20principal%20name%20is%20not%20being%20used%20in%20the%20search.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20yo%20have%20another%20way%20to%20return%20all%20users%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERon%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-182014%22%20slang%3D%22en-US%22%3ERe%3A%20Celebrating%20milestones%20with%20SharePoint%2C%20Flow%2C%20and%20Delve%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-182014%22%20slang%3D%22en-US%22%3E%3CP%3EI%20agree%2C%20a%20more%20extensive%20walkthrough%20would%20be%20greatly%20appreciated!%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-177774%22%20slang%3D%22en-US%22%3ERe%3A%20Celebrating%20milestones%20with%20SharePoint%2C%20Flow%2C%20and%20Delve%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-177774%22%20slang%3D%22en-US%22%3EMaybe%20on%20medium.com%2C%20just%20thinking%20that%20it%20could%20be%20valuable%20info%20and%20I%20think%20it%20might%20just%20get%20lost%20here.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-177225%22%20slang%3D%22en-US%22%3ERe%3A%20Celebrating%20milestones%20with%20SharePoint%2C%20Flow%2C%20and%20Delve%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-177225%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20feedback%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F123001%22%20target%3D%22_blank%22%3E%40Aim%20Zaab%3C%2FA%3E.%26nbsp%3B%20Where%20would%20you%20like%20to%20see%20a%20full%20blog%20article%20posted%20on%20this%20topic%3F%26nbsp%3B%20Happy%20to%20add%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-175851%22%20slang%3D%22en-US%22%3ERe%3A%20Celebrating%20milestones%20with%20SharePoint%2C%20Flow%2C%20and%20Delve%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175851%22%20slang%3D%22en-US%22%3E%3CP%3EMaybe%20that%20would%20deserve%20a%20proper%20blog%20article...%20anyway%20thanks%20for%20sharing.%20I%20tried%20already%20to%20use%20this%20web%20part%20before%20but%20I%20found%20out%20that%20it%20was%20not%20ideal.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESo%20far%20my%20not%20much%20code%20solution%20was%20to%20use%20search%20web%20part%20with%20some%20custom%20query%20and%20template%2C%20but%20that's%20for%20classic%20SharePoint.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMaybe%20at%20some%20point%20I%20will%20code%20the%20SPFx%20web%20part%2C%20as%20I%20think%20I%20already%20have%20the%20search%20API%20query%20somewhere%20to%20retrieve%20the%20users%20with%20upcoming%20birthday.%20However%20using%20Flow%20to%20put%20the%20result%20in%20a%20list%20once%20a%20day%20might%20be%20better%20in%20term%20of%20performance%2C%20instead%20of%20having%20the%20search%20query%20against%20all%20users%20happening%20every%20time%20a%20user%20goes%20to%20the%20intranet%20page.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-891358%22%20slang%3D%22en-US%22%3ERe%3A%20Celebrating%20milestones%20with%20SharePoint%2C%20Flow%2C%20and%20Delve%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-891358%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20the%20same%20issue.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F124143%22%20target%3D%22_blank%22%3E%40John%20Warner%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3ENot%20returning%20the%20users%20with%20com.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Haniel Croitoru
MVP

Recently, I’ve been asked if there was a simple way to provide birthday reminders on a SharePoint intranet without any customizations.  Well, after looking at some of the options available in SharePoint Modern sites, it’s possible (with the help from Delve and Microsoft Flow).

 

In this article, I demonstrate how to showcase the names of people who have a birthday today.  I have not included the year or age as most of us don’t age beyond 25 anyways.  One thing that I really like about this approach is that the birth date is set in Delve and give each user the choice whether to share it with others or not.  If not, then their name will not appear on the SharePoint site.  Other items that this solution can be extended to is to use the hire date and highlight specific anniversary milestones. 

 

Setting the Birthday in Delve

As I’ve mentioned above, one of the first steps was to set the birthdays in Delve.  To set your birthday, click the Update profile button when you first visit your profile page.  This will take you to a page that looks like the one below.  Each user can do this themselves. 

Delve.PNG

 

What is important is that the icon on the right should show a globe to indicate that everyone can see the birthday.  If it’s set to a lock, then only the user themselves can see it.

Birthday.PNG

 

That’s all you need to do in order for your birthday to show up in SharePoint.  You can also use the employee's Hire Date to display work anniversaries.  To edit a user's hire date,

  1. Navigate to the SharePoint admin center (https://<your domain>-admin.sharepoint.com/_layouts/15/tenantprofileadmin/manageuserprofileserviceapplication.aspx)
  2. Select Manage User Profiles
  3. Using the Find profiles, edit search for a user who's hire date you want to set or change
  4. Hover on top of the name of the user you want to change and from the drop-down, select Edit My ProfileEdit Profile.PNG

     

  5.  Scroll down and select a date for Hire Date.  Make sure that Everyone is selected in the drop-down beside the date.
    Hire Date.PNG

     

     

NB: Now that you know my birthday, I expect at least a birthday card or like on this article on that day :smiling_face_with_smiling_eyes:

 

Creating the Celebrations web part in SharePoint and List

 

As I decided to go with a no-code solution, I had to stick with one of the out of the box web parts that would provide a decent look.  So, I actually chose an events list.  I created a new list called Celebrations, which is an out of the box Calendar list and linked it to the Events web part as shown on the right side of the page.Modern.PNG

 

The flow ensures that only users who have entered their birthdays and have a birthday on a specific day show up in the list that day.  I also uploaded an image called confetti.png onto my site to be used as a banner image for the events.

 

Building the Flow

The flow is somewhat straight forward and is broken down into three parts

  1. Daily timer trigger to kick-off the workflow
  2. Delete all existing celebrations in the Celebrations list
  3. Add users who’s birth day and month match today’s date into the Celebrations list

Trigger

The Flow begins with a trigger being set to kick-off the flow each day at midnight.  Make sure to set your time zone, otherwise you may have birthdays start and end time wrapping a calendar day.

 Trigger.PNG

 

Delete Items

Nothing fancy here.  Just a loop that iterates through the Celebrations list and deletes all the items found

 

DeleteItems.png 

 

Add Celebrations

This is where the good stuff happens.  The action starts by searching all Office 365 users that match a given term by display name, given name, surname, mail, mail nickname or user principal name.  To keep it simple, I’ve included the search term com, which appears in everyone’s email.

 

 

Search.PNG

 

Next, I use a comparison between today's date and a date that is available in the user's profile.  As I've mentioned earlier, I have the user's birthday and hire date that I can set and to no surprise, the same fields are available as dynamic content from the Get user profile (V2) action. Fields.PNG

 

 

In this article, I check to see if the birth day and month are today and that the birth year is not 0001, which indicates that the user didn’t provide a birthday in their Delve profile.  To do so, I’ve used the following expression

 

@and(equals(substring(body('Get_user_profile_(V2)')?['birthday'], 5, 5) , substring(utcnow(),5,5)), not(equals(int(substring(body('Get_user_profile_(V2)')?['birthday'],0,4)), 0001)))

 

And finally, I add an item for each match into the Celebrations list.  For the Start Time and End Time, I set them to go from midnight until just before midnight the next day

 

Start Time  

concat(substring(utcnow(),0,10),'T00:00:00Z')

 End Time

concat(substring(utcnow(),0,10),'T23:59:59Z')

 

CreateItem.PNG

 

 

Remember the confetti.jpg image I uploaded into the document library?  You can see it being referenced in the Banner URL field.  This image appears at the top of each celebration event created.

 

 

Event Page.PNG

 

 

Limitations

With the modern Events web part, when there are no celebrations on a day, it shows the three default events, which is not ideal.  I’d rather the entire webs part be hidden in that case.  As well, the Flow action does not allow to specify full-day events, requiring you to enter a start and end time.

9 Replies

Maybe that would deserve a proper blog article... anyway thanks for sharing. I tried already to use this web part before but I found out that it was not ideal.

 

So far my not much code solution was to use search web part with some custom query and template, but that's for classic SharePoint.

 

Maybe at some point I will code the SPFx web part, as I think I already have the search API query somewhere to retrieve the users with upcoming birthday. However using Flow to put the result in a list once a day might be better in term of performance, instead of having the search query against all users happening every time a user goes to the intranet page.

 

 

Thanks for the feedback, @Aim Zaab.  Where would you like to see a full blog article posted on this topic?  Happy to add it.

Maybe on medium.com, just thinking that it could be valuable info and I think it might just get lost here.

I agree, a more extensive walkthrough would be greatly appreciated! :)

Hi,

 

This looks like a great idea, and I'm very hopeful I can use it. However, the Search for Users action is not performing as your article suggests. You use "com" as the search term assuming it will return all users since all users have .com in their e-mail address.

 

This is not working for me. Using com as the search term only returns 26 users instead of the expected ~5000. It appears the domain part of the mail or user principal name is not being used in the search.

 

Do yo have another way to return all users?

 

Thanks,

 

Ron

Hi @Ronald Rohlfs, I haven't come across this issue as my tenant doesn't have that many users.  Did anyone else experience this limitation?

Hi Haniel,

I like this non-coded way of showing Birthdays on a SP site but I have an issue. In the part when Get user profile (V2) comes in, I can't find Birthday inside "Dynamic Content". Are you familiar with this?

I'm having trouble get a list of all the users.  I've used the "org" criteria similar to your "com" but it looks like they've changed the behavior.  I think they are screening out the last part of the email address and looking for things before the @ sign.  Any ideas?

I have the same issue. @John Warner 
Not returning the users with com. 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies