MS CRM 2011 - How to track when time off is set for a crm user?
-
21 Mei 2012 18:31
Hi,
I've a requirement where I need to write a custom logic in which I've to share user1 records to user2 when user1 is on holiday. Need to track immediately if user sets his 'time off' for the day. But not sure, which event tracks this change so that I can write custom workflow activity / plugin (if possible)?
Any suggestions are highly appreciated.
Thanks.
Semua Balasan
-
21 Mei 2012 23:10
Hi,
Can you please provide details on how is the user is setting his/her 'time off'?Is this a custom field on the user form?
You can post screenshots if possible. This will help myself or others to answer your question.
Thanks.
Ashish Mahajan, CRM Developer, CSG (Melbourne)
My Personal Website: http://www.ashishmahajan.com
My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm
My Twitter: https://twitter.com/#!/ashishmahajan74My Linkedin: 
-
21 Mei 2012 23:28
Hi Ashish,
'Time off' is OOB feature.User -> Work Hours -> Select day and from 'Setup' menu -> Select 'Time off' as shown below:
-
21 Mei 2012 23:54
Hi,
You is a very unique scenario. I haven't myself had to use the work hours events, but I know which table your entry is logged. You entry of work hours and time off goes to calendarrule and calender entity tables.
1) From this clue I advise you to read the link:
http://msdn.microsoft.com/en-us/library/gg328319.aspx
This displays Calendar Entity Metadata.
2) Also have a look at:
msdn.microsoft.com/en-us/library/gg309491.aspx
This displays Calendar Entity Messages and Methods
select CreatedOn CreatedOn1, * from CalendarRule order by CreatedOn desc select CreatedOn CreatedOn1, * from Calendar order by CreatedOn desc
I hope this helps. If my responses answered your question, please mark all these responses as an answer and also vote them as helpful.
Ashish Mahajan, CRM Developer, CSG (Melbourne)
My Personal Website: http://www.ashishmahajan.com
My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm
My Twitter: https://twitter.com/#!/ashishmahajan74My Linkedin: 
- Disarankan sebagai Jawaban oleh Ashish Mahajan Australia (Architect) 21 Mei 2012 23:54
-
22 Mei 2012 0:00
Hi abhidrocks,
Your plugin / workflow could listen to the Create message of the Calendar Rule and you will need to check that the calendar rule created is a type of "Time-Off". The way to know that this is a time off is by checking the Timecode = 2 and Subcode = 6.
I hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful.
Dimaz Pramudya - CRM Developer - CSG (Melbourne) www.xrmbits.com http://twitter.com/xrmbits
- Disarankan sebagai Jawaban oleh Dimaz Pramudya (www.xrmbits.com) 22 Mei 2012 0:00
- Ditandai sebagai Jawaban oleh abhidrocks 22 Mei 2012 0:34
-
22 Mei 2012 13:27Thanks Dimaz, Ashish for your responses.