Access 2013 Custom Web App DatePart Query - ms-access-2013

I'm currently constructing a query that processes timesheets so that total hours can be viewed for a week for all employees (as well as weekly and daily breakdowns).
I'm using Microsoft Access 2013 to create a custom web app (different syntax to the desktop version)
I currently have an expression in 'week' field that looks like this:
DatePart(Week,[LogDate])
This does work.
I need the week to start on Thursday and end on Wednesday for payroll. Is there any way to do this? I've tried:
DatePart(Week,[LogDate],vbThursday,vbFirstFourDays)
but that hasn't worked. I've also tried variants like:
DatePart(Week,[LogDate],vbThursday)
And others, but I get the error message "The expression you entered has a function containing the wrong number of elements". What am I doing wrong? Or is this even possible for Web apps?
Thanks in advance for the help.

Related

How to handle task level calendars in auto-scheduling in DHTMLX Gantt

I am facing issue with auto-scheduling when i am using task level calendars with different working days and holidays along with link lag property to set lag and lead time between tasks. I am using forward planning with type 3 links between dependencies.
Then the start date of some tasks in not following the lag time passed in the links.
Note: I am not using time constraints still the task start and end dates are not correct after auto-scheduling.
But if I remove the task level calendars then the auto scheduling is working fine with lead and lag time between tasks.
According to your description, it is similar to a known bug in DHTMLX Gantt, but maybe it happens because of something else.
To be sure that it is a bug, please reproduce the issue in the following snippet, then click on the “Share” button and send me the link:
http://snippet.dhtmlx.com/5/3fae1b026
Or send me a ready demo with all the necessary files so that I can reproduce the issue locally.

Fullname control is not working in Dynamics 365 Unified interface

We've recently enabled the Unified Interface on our Dynamics 365 CE web client and noticed that the fullname is missing from the Contact forms and several views. It is there when we open the Form editor, but when we're running formContext.getAttribute("fullname") it returns a null.
It's causing us a big headache as we're using the fullname basically everywhere: in forms, views, Document templates, JavaScripts etc.
Has anyone come across this problem or knows a workaround without having to replace the fullname with first and last name everywhere in our environment?
According to Microsoft it's officially not ready before April 2020 (https://learn.microsoft.com/en-us/power-platform/admin/about-unified-interface#capabilities-not-yet-on-unified-interface), but we need to start testing before that.
Many thanks in advance
Composite control is not available in UCI yet. So the popup will not be showing up to do data entry. That means the Full name field will display as the child individual fields, ie. First name & Last name. The data changes in any of the First name or Last name will replicate to Full name field.
Only changes needed is in form scripting. Whenever/wherever you are accessing the Full name field like formContext.getAttribute("fullname") just switch it to formContext.getAttribute("firstname") + " " + formContext.getAttribute("lastname") if the script is executing in UCI.
I just tested this quickly in my UCI. Also views showing the Full name field without issues. Templates should not be a problem if data is there. Only problem is in form, so the above script will solve the issue.

Get records in MS flow from Dynamics CRM

I am new to CRM and flow and in building a flow using MS flow, I need to get a record from Dynamics CRM equivalent to below SQL query -
select * from contacts where emailId = '<email id>'
Can you please help me to understand that how can I achieve this. I tried using List records feature but it threw an error that OData query is not correct. Image of flow is attached.
Well, it's working, I just had to put the parameter supplied in the single quote like -
emailaddress1 eq '<Customer email>'
If I understand correctly, the issue you are facing is with Filter query, Flow is not throwing an Error.
I tried to replicate the Flow on my Instance/org.
The issue is see is your filter filed "emailadress" should be selected from CRM i.e from system.
It is not mapped from CRM rather you wrote it per hand.
Click on Filter query it will open the dialog from where you could map the
fields. Screenshot below will help you understand more.

Google admin sdk - user usage reports not available

I would like to ask you for help with google admin sdk, User Usage Reports. I got following questions:
One of the parameters used to retrieve a usage reports is a date. Unfortunately for current date the reports are not yet available - I must use a date few days in the past. Is there any official rule, recommendation or any advice how to know most recent date for which the reports are already available? Should I query reports for a one day in the past, 3 days, week or...? I just want to have the latest results without worrying about the date...
Even more: sometimes the returned reports are OK for one of the google apps but for other one - like docs - I got warning that its not ready. So my question is: how to get most recent data for all of the apps? (mainly: accounts, docs, gmail).
I am using "all" parameter to retrieve all accounts at once.
Second question is related to first one: assuming I receive partial data - for example no reports for docs - is it possible that when I retrieve reports for all accounts (emails) some of them will have reports ready and some of the only partial data? Or the reports are always either ready or partial and for all accounts (emails) I should expect the same, full or partial data?
Thanks in advance!
Is there any official rule, recommendation or any advice how to know most recent date for which the reports are already available? Should I query reports for a one day in the past, 3 days, week or...? I just want to have the latest results without worrying about the date...
UserUsageReport returns Google Apps service activities across your account's users. the get() method retrieves a report for a set of account users. You can query for any date value provided that its timestamp is represented as ISO 8601 and should use your account's timezone.
how to get most recent data for all of the apps? (mainly: accounts, docs, gmail).
I'm guessing you're using CustomerUsageReport, it may take a while to process a report and thus you may have to retry to call it again after a few hours.
Second question is related to first one: assuming I receive partial data - for example no reports for docs - is it possible that when I retrieve reports for all accounts (emails) some of them will have reports ready and some of the only partial data? Or the reports are always either ready or partial and for all accounts (emails) I should expect the same, full or partial data?
I think this will depend on if the data are now available or not. You can test out various parameter values when accessing the API to test it out.

Exchange Web Services, unable to set startTimeZone of appointment (java api)

When trying to set the start time zone of an appointment (in ews java API 1.1.5) I get an error. I'm trying to set the time zone because an exception is raised when using appointment.setStart otherwise.
Appointment = new Appointment(service);
appointment.setStartTimeZone(new TimeZoneDefinition() {{setId("what should go hère")}});
appointment.setStart(startTime);....
Using exchange 2007
It finally appear that the JAVA EWS API is a bad (and full of bugs) port of the C# version.
So the rule is simply to not use it.
There is some alternative out there :
J-xchange
For my specific question, it looks like setStartTimeZone function expect a C# object, which it's not possible to get.
I was able to get around this by commenting out the validation code regarding StartTimeZone (lines 247-256 of Appointment.java) and recompiling the jar. If I pass in date/times based on UTC, the appointment gets created in the user's timezone.

Resources