Hi all,
I have spent a ridiculous amount of time scrolling through many many Q&A's here trying to figure out this very simple process, but I've now butchered it with so many changes trying to fix it that I am totally lost.
Trying to pull Excel data (birthdays, anniversaries) into a Sharepoint list to add to a calendar. I've given up trying to schedule this for new rows/data, now I'll just be happy to have the current data imported and I'll update new items manually.
Wanting calendar entries to be all-day and recurring year over year.
Excel pull is working, I believe the issue is with my date formatting. Error is "Cannot convert a primitive value to the expected type 'Edm.DateTime'." Not sure if it's stemming from the variable actions I have, or happening solely at the item creation level.
As much detail as you can provide is great, I am a newbie : ) TIA
Hi Anna!
Thanks for your help, I am still getting an error when trying to run. Do I need to remove my variable set and instead create HTML table? If so, will the formatting of the HTTP request change?
Here is the setup and error:
Hi @Anonymous
Thank you for posting.
Yes, you are right. The main issue is caused by date format comes from excel file.
The date output from excel should be a number like 44317 instead of 2021-05-01 even though they are formatted as date in excel.
So, if you want date exported from excel look like a date, we must do conversion first using below expression (The bolded part is the dynamic content of that date column).
formatDateTime(addDays('1899-12-31',int(items('Apply_to_each)?['HireDate'])),'yyyy-MM-dd')
Hope the content above may help you.
Best regards,
Anna
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2