web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Extract month and year from code when exporting to excel to get dynamics report

(0) ShareShare
ReportReport
Posted on by

Hello my friends,

I am quite new and I need yourt help. Let say that I have in CRM the date, when the item was createdy, and I want to extract month and year. 

So Is there a way to do this right in CRM 2011?

And if I created a dynamics list in xml format a I have the date there, is there a way to extract it right in the code in Excel? 

Bellow see the example:

Select "new_etapa0".createdon as "createdon", extract(year from "new_etapa0".createdon), extract(month from "new_etapa0".createdon) .....

Thank you in advance for your help!

Jiri Beran

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hello,

    You can create two more columns(Year, Month) in your excel sheet and the provide formula to them. then map these fields in import

    8244.2018_2D00_11_2D00_28_5F00_13_2D00_47_2D00_16.png

    Hope you can understand.

    Thanks

  • Community Member Profile Picture
    on at

    Hello,

    thank you for your reply, but I needed done it into code.  Since you have f.e. 50 000 rows of data and you need add more columns, it will make your Excel file very slow.

    Thank you for your time!

  • Suggested answer
    StefanS365 Profile Picture
    3,575 Most Valuable Professional on at

    Hi Jiri,

    You could use the Date Time Workflow Utilities from Jason Lattimer as well to extract month and year.

    github.com/.../CRM-DateTime-Workflow-Utilities

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans