Giter Club home page Giter Club logo

viva-connections-workanniversaries-card's Introduction

Viva Connections 'Work Anniversaries' Card

image

A low-code card built with the Card Designer that uses the new Advance API Features (https://learn.microsoft.com/en-us/sharepoint/dev/spfx/viva/features/card-designer/card-designer-api-support) to display work anniversaries for employees.

It uses the SharePoint REST API and a SharePoint list.

The wider 'idea'

It is designed to be part of a wider 'Work Anniversary' solution utilising a Power Automate flow to send adaptive cards on employee anniversaries however this has not been built yet. The thinking is to use the Microsoft Graph to retrieve the users' 'employeeHireDate' property, ascertain whether the user has an anniversary in the current week, calculate the number of years and add the item to the list. The list would be cleared down at the end of each week.

Deployment

This is something I will build at a later date.

To deploy the solution as is, follow the steps below:

  1. Configure the new Advanced API Features by following the steps in the documentation above.

  2. Create a SharePoint list in your Viva Connections home site named 'WorkAnniversaries' with the following columns:

    • NoOfYears (Number)
    • Employee (Person or Group)
    • Employee Name (Single line of text)
    • Hire Date (Date)
    • Profile Photo URL (Hyperlink)
    • WeekCommencing (Date)

    Populate the list with some example list items. The 'WeekCommencing' column should be the date on which the current week commences. The card displays all items from the list currently, the idea being a Power Automate flow would clear these down weekly.

  3. Add a Card Designer card to your dashboard and configure it as follows:

  • Card Size: Medium
  • Title: Anniversaries
  • Icon: Balloon
  • Heading: View upcoming work anniversaries
  • Image: Use the image supplied in this repo (anniversaries-card-image)
  • Card action: Show the quick view
  • Template JSON: Copy and paste the provided template JSON from this repo (ac-quickview-anniversaries-template.json)
  • Data source: Call a SharePoint API
  • Request URL: lists/GetByTitle('WorkAnniversaries')/items
  1. Apply the changes to the card and republish your dashboard.
  2. Clicking on the card should show the quick view and the items from your list.

viva-connections-workanniversaries-card's People

Contributors

alexc-msft avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.