How to query Leads by multiple (logical-and) conditions? - marketo

is there a way to query Leads by multiple conditions using the REST API, similar to the SQL AND, or OR logical operators?
The close solution I found is:
Get Leads by Filter Type:
http://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#!/Leads/getLeadsByFilterUsingGET
That seems not capable of do multiple Filter Type? For example, I want to query by firstName AND lastName. How to do that?

Why not creating a static list in Marketo and just use Get Leads By List ID?

Related

https://graph.microsoft.com/v1.0/deviceAppManagement/managedAppRegistrations filter on bundleId or packageId

I am trying to retrieve info from intune via GraphApi.
Want to filter on bundleId or packageId field (located under appIdentifier).
But I can't seem to find a way to do this.
Target result is :
userId,os_type (based on either #odata.type or packageId/bundleId).
Step further is that i want to identify certain apps by filtering on for example startswith(packageId,'com.microsoft').
I have tried combinations on "/deviceAppManagement/managedAppRegistrations?$filter=startswith(bundleId,'com.m'). But I keep on ending up on "invalid filter clause" whenever i want to execute a filter action.
Trying to recover from microsoft documentation if any filtering is possible on this part of graph seems impossible.
Currently we are using power automate to retrieve data and that works if we don't filter / select.
screenshot of json result
Use the following filter: startsWith(microsoft.graph.iosVppApp/bundleId, 'com.microsoft')
I found a pointer at this reddit post: https://www.reddit.com/r/Intune/comments/cxkwm3/using_graph_to_show_all_apps_from_one_vpp_token/

How can I use ListView.obj in filtering SOQL, or in filtering already queried data?

I am working with a Lightning:DataTable that is being populated with 1 of 3 sObject types. I would like to be able to filter the data going into the table based on the already existing List Views for the object. As this component is for LEX and I am not able to use an Iframe, I can't use an Enhanced List to work around this.
Looking into ListView.obj I see the tantalizing field IsSoqlCompatible. I can't seem to find any examples for ListViews being used in SOQL queries or their results. Is there some way I can utilize existing List Views to programmatically filter a query or it's results?

Firebase get data compare two fields

I'm trying to get all the documents that have my phone number as the fromNumber or the toNumber. My call right now is:
database.collection('documents').where('fromNumber','==',myPhoneNumber).get().then();
Instead of making 2 calls, one to check the fromNumber and the second one to check the toNumber, how can I check both at the same time and in the same .get()?
Btw: tested this code:
database.collection('documents')
.where('fromNumber','==',myPhoneNumber)
.where('toNumber','==',myPhoneNumber).get()
.then();
But it checks if both are true, it's an AND instead of the OR I'm looking for.
According to the official documentation, there a are some query limitations, when it comes to Firestore:
Cloud Firestore does not support the following types of queries:
Logical OR queries. In this case, you should create a separate query for each OR condition and merge the query results in your app.
As suggested in the documentation, you should create two separate queries and merge the result cliend side.

How to use Catalyst to search, select and display entries from my database

I have to use Catalyst in order to create a database and access it through a browser.
I have created a very simple database using DBIx-class and sqlite, just one table and filled it with some records.
I have managed to display the whole table and its rows using Template Toolkit view module and the code below into my controller.
$c->stash(ptm => [$c->model('DB::ptm')->all]);
Now I have created a simple search box in order to search the database and display any entries that match with the keyword, but I don't know how to pass the keyword to my controller nor how to implement the subroutine in order to achieve this.
I have searched for more than three days without finding any solution.
There are two completely different problems here.
Accepting arguments in Catalyst
Performing a search in DBIC
So, starting with the first one. Reading a query string.
$c->request->query_parameters->{field}
Then performing a search. Just call search instead of all and pass a hashref of your columns and values.
$c->model('DB::ptm')->search( { 'name' => $tag } );

how to join two tables in linq? Using WCF Data Service

I want to join two tables in one of my linq query. I have written one code but it gives me an error like below
The method 'Join' is not supported.
I have tried this code:
var query = (from ls in this.testEntities.abc
join itm in this.testEntities.edf on ls.ID equals itm.ID
where itm.val == param
select new
{
ls.Name,
ls.Contact
}).ToList();
Am I missing something?
If anyone have any idea about it than please help me...
WCF Data Services is able to directly expand related objects based upon the Entity Data Model. (Don't worry about it if you don't know a lot about an EDM; it's not particularly important to the answer.) Since WCF Data Services is already aware, for instance, that a Product has a Category, I can fire up LinqPad, give it this URL, and issue a query like the following:
Products.Expand("Category").Take(2)
The result is two products, each with a property of type Category.
I'm not really sure what that translates to in the other LINQ syntax, sorry.
HTH,
Mark

Resources