New answers tagged

1

Try using it like this: { "elmType": "a", "txtContent": "", "attributes": { "target": "_blank", "iconName": "OpenInNewWindow", "class": "sp-field-quickAction", "href": { "operator": "+", "operands": [ "http://intranet.maib.local/sites/help/Workflows/preluareElement/...


0

If you're querying lists data via _api/web/lists/getbytitle('Contacts')/items(2988), then try the request header "accept: application/json; odata=nometadata" (reference) This suppresses __metadata from appearing in the response.


0

If you are using JSON formatting on you list field, Commonly the code will make the person name be displayed as simple text string instead of a special link in people picker field. I am not sure if there are possible options to keep it as a link which will show the profile card.


0

You could modify the $CAI column's formatting to be hidden. Then - the field is technically in the view, and so should be reference-able, but hidden from display.


1

To align your cell to the right you can modify the last bit of your JSON: { "elmType": "span", "style": { "width": "100%", "text-align": "right" }, "txtContent": "@currentField" } To get just the integer bit you could do the following: Adjust for correct decimal sign... "txtContent": "=if(indexOf(toString(@currentField),'.')>=0,...


2

As far as I know, there is not yet a specific PnP cmdlet to help with this. The trick is that SharePoint doesn't care that the contents of your file are JSON or plain Text, it still stores it as a binary file. So you have to retrieve it as a binary stream, then read that stream into a string variable. Then finally, if you want an actual PowerShell object ...


2

You can refer the below PowerShell script : $listArray = New-Object System.Collections.Generic.List[System.Object] foreach ($item in $ListItems) { $listArray.Add([hashtable]@{ DisplayTitle=$item["Title"]; Setting= $item["Setting"]; Description= $item["File_x0020_Description"]; HealthAreas= $item["Health_x0020_Area"]; ResourceType= $item["...


Top 50 recent answers are included