Powershell - How to exclude a sub property - azure

I am using Resource Graph to get all change records. All change records has "Changes" property and it has sub columns too. I want to exclude "properties.provisioningState" across all records.
enter image description here
Tried -ExcludeProperty but didn't work

Related

Oracle BI Publisher Excel Template Connecting Parent And Child Nodes

I have one main data set for project list that contains "Project ID" columb and multiple child sets for different information for each project with "Project ID" and "Value" columns. Data sets connect via Project ID column. my bi publisher data model looks like this
My goal is to create table below.
the table I need to
When I use report editor of BI Publisher and apply following steps;
Insert a table
Add Project ID as first column from "main" data set.
Add Value columns from child data sets.
it worked perfectly fine and matched project id of every value and project id of main data set.
But I need to use excel templated but I cant get same table using excel template. I tried couple of repeating section combination, non of them work.
How do I connect child nodes to parent for each row?
Because of confidential reasons, I cant share screenshots and don't have any copy of template.
Thanks in advance.
Not sure how you have your data structure/XML set up. Or why you can't update the SQL on the dataset to combine the data there, but these may help:
Option 1
<?for-each:PROJECT?>
<?xdoxslt:set_variable($_XDOCTX, 'v_PROJECT', PROJECT_ID)?>
<?for-each:DATASET_1/RECORD?>
<?if:xdoxslt:get_variable($_XDOCTX,'v_PROJECT')=PROJECT_ID?>
<?VALUE?>
<?end if?>
<?end for-each?>
<?end for-each?>
Option 2
<?for-each:PROJECT?>
<?xdoxslt:set_variable($_XDOCTX, 'v_PROJECT', PROJECT_ID)?>
<?for-each:DATASET_1/RECORD[PROJECT_ID = xdoxslt:get_variable($_XDOCTX,'v_PROJECT')]?>
<?VALUE?>
<?end for-each?>
<?end for-each?>
Thank you for your help, I couldn't share any screen shot or code before because I didn't have any in my PC. But I setup BI Publisher to my PC and try to recreate sample data.
My data set
What I am trying to was creating a table like this
Table I want to create
This is my what xdo_metadata sheet looks like.
XDO_?XDOFIELD2? <?NAME?>
XDO_?XDOFIELD2? <?TASK_COUNT?>
XDO_?XDOFIELD3? <?TASK_COUNT?>
XDO_?XDOFIELD4? <?TASK_COUNT?>
XDO_GROUP_?XDOG1? <xsl:for-each select=".//PROJECT">
But it didnt work as I expected. It created a table like below
Output in first try
I found out why it didnt work, Beacuse I used same aliases for the all value columns.
Later I tried the change xdo_metadata with parent node before field names and it works perfectly fine;
XDO_?XDOFIELD2? <?NAME?>
XDO_?XDOFIELD2? <?./SET1/TASK_COUNT?>
XDO_?XDOFIELD3? <?./SET2/TASK_COUNT?>
XDO_?XDOFIELD4? <?./SET3/TASK_COUNT?>
XDO_GROUP_?XDOG1? <xsl:for-each select=".//PROJECT">
I guess using unique aliases in the each query like TASK_COUNT1,TASK_COUNT2,TASK_COUNT3 would work too.
I hope it will help those who will have problems in the future.

PowerApps - Gallery Filter by all values in multiline text input - Delegation Error

I am trying to create a simple CRUD app for my teams to create, View & update records in a SharePoint List.
I am fairly new to powerapps and don't know much about bypassing delegation queries/errors.
I am stuck at creating a view/update screen. I have a Multiline Text Input that the users will input multiple unique package numbers. The idea is that the gallery should filter the records from the SharePoint List matching the package reference numbers in the multiline text box. The user can then select all and update a status by clicking a button.
As seen in the image above, I want the gallery to be filtered for only the Brand Package Reference that are in the Multiline Text Search Box.
I tried to create a collection of the ref nos in the search box with the below formula.
ClearCollect(FilterList,{RefNos: Split(Substitute(TextInput2.Text," ",","),",")})
Then tried a filter function with a ForAll as below. But this didn't work. It gave me a delegation error.
ForAll('Lost Packages Log', Filter('Lost Packages Log',FilterList.RefNos = 'Brand Package Reference'))
Can someone please help me create a formula that would help me achieve my goal.
Sounds like you have two issues:
Delgation
Filter a column by multiple values in a text box.
To get around the delegation errors, you need to keep the dataset below 2k records (assuming you set max records to 2000 in File/Settings/Advanced Settings/Data row limit...).
One way to do this is to create a collection of records OnVisible of the screen, that will always be below 2k.
Example:
ClearCollect(colRecords,
Filter(yourSharepointList,
StartsWith(status, "urgent")
)
)
The StartsWith() function works on text columns and is delegable to Sharepoint. Once you get your record count under 2k at all times, you can address the multi-line filter.
This will filter the gallery by items entered in the search box:
Set the Gallery Items property to:
If(
IsBlank(TextInput1.Text),
colSample,
Filter(
colSample,
packingNumber exactin Split(
TextInput1.Text,
Char(10)
).Result
)
)
Loosely translated:
If the search box is blank, show all records.
Otherwise, filter the collection of records where the packingNumber is exactly in the results of splitting the text box by newline characters.
Results in:
(here is a sample app though the hosting service will only serve it up for 30 days)

Automation steps not found

I am trying to modify the comboBox values of the fields in the Automation Steps page. , but I cannot seem to be able to do it for all of them. Some of them are appearing disabled:
So I tried to make this change in the DB directly. However the graph is not public so I cannot identify the datamember definition.
I did identify however, the following tables:
- AUStepCombo: includes the Values of the combo box. In this case I obtain all the records from the smartpanel
This table, however, does not include the description.
AUCombo: includes the descriptions of the combobox, connected with AUStepCombo via the RowNbr field.
However, I noticed that the AUCombo table doesn't show all the values from the smartpanel. Only a subsection of the values from AUStepCombo. The fields disabled in the smartpanel, are the ones not inclued in this table.
Are these available in another table?
check out CROpportunityProbability table. you will see the StageIDs in there.

Spotfire - Adding dynamic date restriction to data table which is based on an information link. Spotfire 6.0.1

I have an information link that I want to restrict in spotfire when I add it as a data table so that certain data is excluded. I want to restrict column 'DAY' to the past 91 days.
These are the steps I have tried that haven't worked:
Added data table and clicked 'load on demand' (in the 'Add Data Tables' window) and then 'settings'
On the 'DAY' column, clicked 'Define Input'
Chose 'Range(fixed/properties/expression)' as the 'Input' for the selected parameter
Then as the 'expression' for the 'Min', used: DateAdd('dd',-91,DateTimeNow())
It returns an error when I try to add a transformation to the data or just returns no data when I add the data table. If I just restrict the data with a fixed value it works as expected but clearly this would mean that I would need to change the restriction everyday. I have also been able to restrict the data to a static date directly on the information link under the 'Filters' heading. What I really need is a dynamic restriction that is placed on in some way, in Spotfire, rather than directly on the data source (Oracle).
Would be grateful for any help! Thanks!
It couldn't recognize DateTimeNow(), which is a DateTime as a Date. Spotfire gets kind of picky about that sort of thing.
Replace the Expression used for Min with
DateAdd("dd",-91,Date(DateTimeNow()))
and it should work.

In Sharepoint KQL: How to query against List property with space in the name?

I'm trying to query against a SharePoint List using KQL including some properties of that list that have a space in their names.
Example:
Src State:"WA" Prod Id:"X12" SomeFreeText PATH:http://server/sites/items/New%20Items/*
The free-text filter works as expected when alone, but returns nothing when including those property filters, such as "Src State".
I assume that is a problem with the space in the name. So, I've tried changing the space to "%20" and to "x0020" and even enclosing the property name between quotes (single and double), but not results found!
What I'm missing?
If you want to run a KQL search on list it's a little bit more complex than just using the column name. KQL is a part of Search Service and the columns have to become managed properties. Managed property names cannot contain spaces. SharePoint automatically creates managed properties from site columns, but if the column is directly added to list (and not as a site column), then you have to create managed property manually in Search Administration.
So if the columns are site columns, then there is a specific naming convention on how the managed property names are created (https://technet.microsoft.com/en-us/library/jj613136.aspx). If "Src State" and "Prod Id" columns are simple (say Text, or Choice), then the following query should work:
SrcStateOWSTEXT:"WA" ProdIdOWSTEXT:"X12" SomeFreeText PATH:http://server/sites/items/New%20Items/*
If this doesn't work - please check the Search Schema in Search Administration whether the managed properties for these columns have been created. If not, then you will have to create them manually and ReIndex/ReCrawl list content. Instructions on how to do that are here: https://technet.microsoft.com/en-us/library/jj219667.aspx

Resources