I'm looking to allow a user to enter either the RefNumber or TxnID into a textbox to query for an Invoice. What is the format for a TxnID? I'm considering using a RegEx pattern to determine whether it's a TxnID or not. Thanks!
From the QB OSR...
TxnID is of type IDTYPE
An IDTYPE (identifier type) is a string with a theoretical maximum length of 36 digits, though the allowed maximum depends on the situation. An IDTYPE returned from QuickBooks is a concatenation of the object ID and creation time, separated by a hyphen.
Related
I am trying to figure out the maximum length of the ID of the Office 365 item. E.g. there is DirectoryObject resource type https://learn.microsoft.com/en-us/graph/api/resources/directoryobject?view=graph-rest-1.0. It has an ID field but the maximum length of this field is not mentioned anywhere.
Similarly, for Exchange online we have mailbox IDs. Is there any document that mentions the maximum length of these Office 365 items (DirectoryObject, Drive, DriveItem, Teams/Channel ID, Mailbox, etc.) Or if there any programmatic way of figuring out the maximum length? Please let me know.
There is no specified maximum length. You can't assume anything.
I am storing phone numbers in the database in the user model in various formats. All the followings are possible.
+306974135662, 306974135662, 30 6974135662
Then from the front-end, I am getting a specific format that has the plus sign and no spaces.
+306974135662
I want to write a mongoid query that matches all the above formats. Is that possible?
User.where(phone: params[phone])
should return all 3 users with phone numbers +306974135662, 306974135662, and 30 6974135662
Option 1: store phone numbers as they are entered, use regular expressions for matching.
Option 2: store phone numbers as they are entered in one field. In another field store canonicalized representations of the phone numbers (the second one in your example). Match against the canonicalized representation.
The second option costs additional disk space, memory and pre-processing but allows queries to be simpler and faster.
I am new to logic app and try to build and logic app to check the records in Azure table. The PartitionKey is a string type of DateTime.utcNow().Ticks. I want to write a filter query to filter the records whose PartitionKey is less than or equals to current DateTime. My effort is shown in the screenshot:
It keeps telling me the expression is invalid. Can anyone give me some hints to write the correct query for my purpose? Many thanks. I am not sure why this expression is invalid.
Firstly your filter query expression, the format should be Timestamp le datetime'2019-03-18T06:07Z'.
Second the expression doesn't need the ticks function, if use it the query expression will be like the below pic hows.
So actually the right query expression should be Timestamp le datetime '#{utcNow()}', if you get the warning, go the code view mode change the expression and don't forget the single quote.
And here is my test result, hope this could help you, if you still have other problem please feel free to let me know.
Thanks for George's hint, I just need to add single quote rather than using the string(). This will help me convert the ticks value to string so that I can compare it with the PartitionKey field.
In this way, it performs the same as this table query for me:
string currentDateTime = DateTime.UtcNow.Ticks.ToString();
TableQuery<EmailTableEntity> rangeQuery =
new TableQuery<EmailTableEntity>()
.Where(TableQuery.GenerateFilterCondition
("PartitionKey", QueryComparisons.LessThanOrEqual, currentDateTime));
https://developers.google.com/youtube/v3/docs/search/list
How can I exclude all results for a given topic from my search?
For example,
topicId="-/m/04rlf" to exclude all results with Music as topic.
You may refer with this documentation. The q parameter specifies the query term to search for.
Your request can also use the Boolean NOT (-) and OR (|) operators to exclude videos or to find videos that are associated with one of several search terms. For example, to search for videos matching either "boating" or "sailing", set the q parameter value to boating|sailing. Similarly, to search for videos matching either "boating" or "sailing" but not "fishing", set the q parameter value to boating|sailing -fishing. Note that the pipe character must be URL-escaped when it is sent in your API request. The URL-escaped value for the pipe character is %7C.
We can use FQL › link_stat to query the total numbers. Can we give a specified time to query?
https://developers.facebook.com/docs/reference/fql/link_stat/
No, the only indexable field, the fields you can specify on the where clause, is url. Indexable fields are marked with a asterix '*' in Facebook's documentation.