Unable to pass custom timeframe date range from json body using azure resource manager data source
this is the way I have tried to get cost details using time range, it works if I pass static values, but fails if it passed from a parameter.
in the screenshot, you have timeperiod with a lower case p, but in the cost management API docs for /query it shows it being timePeriod with a capital P. its strange that the docs don't explicitly state what the format of the string should be?
by default workbooks would format that as JSON dates, but you might need to use {TimeRange:startISO} or `{TimeRange:startUnix} or something if it is expecting some other format?
Related
I want to use Parameter (Date) in SQL Query of a Data Flow in ADF via Pipeline, where the value is coming from a pipeline Variable.
I could pass the parameter but the execution is giving me a following error.
The store configuration is not defined. This error is potentially
caused by invalid parameter assignment in the pipeline.
Now there is a solution available for a similar but not exact issue which is to check or uncheck the Expression checkbox of a Data flow parameter, so I did following steps.
Did check/uncheck the Expression checkbox for the parameter
(remember, this is Date datatype parameter, so expression is not
valid for Date type Parameter). I did it by first passing the string
parameter (with checked expression checkbox) and than let Dataflow
convert the string to date and store it inside another Parameter
which is date).
I tried passing directly to Date type parameter to Dataflow
parameter (here expression checkbox is not applicable for a reason).
None of the above trials worked.
Note, I don't want to use the Dynamic Content in Data Flow query as the Source Query is complicated and Concatenate will be a big mess in that case
Appreciate your inputs.
I just wondering if you can assist us with following issue regarding retrieving data via Web Service endpoints filtered by date time range.
I created a General Inquiry that retrieves all open orders (SO) and expose it via Web Service Endpoint(6.00.001):
And here is the mapping for my GI used in custom endpoint:
The issue I am facing now is that when I try to filter by datetime field (DueDate) between a date time range it does not work.
I can only make it work if I filter by DueDate greater than or DueDate lower than using datetimeoffset but not between the datetime range.
Do you have any example of URL I can use to filter a Web Service Endpoint by datetime range?.
Thanks,
The correct way to map a GI in a Contract-Based Endpoint is as follows:
there must always be a top-level entity (GetOrdersToBePicked in the screenshot below) mapped to the Filter object, that will be used to pass parameter values to the GI
the nested Detail collection (OrdersToBePicked in the screenshot below) mapped to the Result object will be used to obtain the list of orders within the date range specified for our top-level entity
To retrieve data from your GI, simply send PUT command with date range defined in request body and expand query parameter, 100% mandatory in this case, to request the list of sales orders satisfying filter conditions:
../entity/ExtendedDefault/6.00.001/GetOrdersToBePicked?$expand=OrdersToBePicked
{
"DueDateFrom" : { "value": "2017-06-01T00:00:00+00:00" },
"DueDateTo" : { "value": "2017-08-31T00:00:00+00:00" },
}
Domino REST API doesn't return any view data if I use date at query parameter "Keys". In case of Extension Library REST Control we can use NotesDateTime() or #Date() to make it work.
But I don't know how to use the same at Domino REST API call. Anybody knows how to use date as key?
This is the the sample url,
https://demodomain.com/demo.nsf/api/data/collections/name/viewName?sortcolumn=DateField&keys=1999-03-24T22:16:17Z
I looked at the source code for the Domino data service. The view entries resource (/{db}/api/data/collections/name/{view}) always assumes the keys parameter is a string. So apparently it's unable to match any value in a date column.
This behavior could be improved. Meanwhile, you could work around the limitation by creating a separate sort column with the TEXT representation of the same date. Use the new column name in the sortcolumn parameter and the view entries resource should be able find rows that match the keys parameter.
I want to send a query to the Google Search Appliance that includes date range criteria of a meta field (lets call it metaDate). For example: metaDate field between 01.01.2010 and 01.01.2015. How can i construct a query such like this?
Mohan's not entirely correct. You can perform range searches on any metadata attribute. This is different then the document date. See Google's Documentation for this.
Also you can create a dynamic navigation element and test the format yourself. Dynamic Navigation can be used to construct range searches.
You have to tell GSA to use metaDate as Lastmodifieddate either by adding it as Last-Modified response header or by configuring Document Dates in GSA admin console for metaDate. After the changes, reindex your documents and fire a date range query along with the query term.
For example, q=someterm daterange:2010-01-01..2015-01-01
I'm new to Orchard CMS and trying to create a query that will filter a list of upcoming events date. What I want to do is filter a list of upcoming events. I have set up a list and plan to use the creation date (setting the date to the event date) as filter. Where I have ran into an issue is getting the filter value to work. When I set the filter value to {DateTimeField.Date} for get the current date or any of the other date options, the filter does not work. It show all events. When I manually type in the value field "2014-08-20", it works. Any ideas of why I can not set the date to the current date?
I have also tried creating just a date field within the content definition and received the same issue as above. I do plan to create a Event End Date that will not show, but will be used to filter. I assume the value will be very similar though to what would be needed for the creation date though.
I am using Orchard CMS 1.8.0
Any help will be greatly appreciated.
The current date can be obtained in Token form like this: {Date}. That token itself can be modified as a date token. In particular, it can be formatted. In your case, because the filter will construct a HQL filtering clause from your expression, {Date.Format:yyyy-MM-dd} will put the current date into the right format.