Skip to main content

package.json

{ "name": "yammer-auth", "version": "1.0.0", "description": "", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "lite-server" }, "author": "Sai Prasad Padhy", "devDependencies": { "lite-server": "^2.5.4" } }

Comments

Popular posts from this blog

How to Use Batch to call SharePoint Rest API in PnP-JS

Using Batch in PnP-JS import { sp } from "@pnp/sp/presets/all"; import { dateAdd } from "@pnp/common"; const batch = sp.web.createBatch(); var ListsArr = ["Admin_Test", "Test_attch","TestCopy"] ListsArr.forEach((list)=>{ sp.web.getList(`sites/MyTeamSite/Lists/${list}`).items.inBatch(batch).usingCaching({ expiration: dateAdd(new Date(), "minute", 2), key: `cache_${list}`, storeName: "local" }).get() .then(items1 => { console.log(items1); }); }) // this line executes actual HTTP request to $batch endpoint batch.execute() .then(data => { // at this point all requests will be completed console.log('done'); });

ALM in Power Platform

ALM in Power Platform $SecurePassword = ConvertTo-SecureString 'pw123' -AsPlainText -Force $creds = New-Object System.Management.Automation.PSCredential ('name@email.com', $SecurePassword) $Connection = Get-CrmConnection -OnLineType OAuth -OrganizationName 'orgname' -DeploymentRegion 'Oceania' -Credential $creds $EnvVariableId is the GUID of the environment variable function Update-EnvVariable ( [Guid] $EnvVariableId, [Microsoft.Xrm.Tooling.Connector.CrmServiceClient] $Connection ) { $updateFields = @{ } $updateFields.Add("value", $Value) Set-CrmRecord -conn $Connection -Fields $updateFields -Id $EnvVariableId -EntityLogicalName "environmentvariablevalue" } Update-EnvVariable - $EnvVariableId -$Connection

Get Oauth token in Power Automate

 Get Oauth token in Power Automate