This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| If(!(Test-Path "./PCF")){ | |
| New-Item "./PCF" -ItemType Directory | |
| } | |
| Set-Location "./PCF" | |
| If(!(Test-Path "./.git")){ | |
| & git init | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [string]$folder, | |
| [bool]$mainOnly = $false | |
| ) | |
| cd $folder | |
| Write-Host "Syncing folder " $folder | |
| $branch = & git branch --show-current | |
| $changes = & git diff --shortstat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const flagsPath = 'pcf-scripts/featureflags.json'; | |
| const flags = require(flagsPath); | |
| flags.pcfAllowLookup = 'on'; | |
| fs.writeFile( | |
| require.resolve(flagsPath), | |
| JSON.stringify(flags, null, 2), | |
| function writeJSON(err) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| steps: | |
| - bash: | | |
| git clone https://betimbeja:${GitHub_Token}@github.com/BetimBeja/fake-xrm-easy | |
| cd fake-xrm-easy | |
| git remote add upstream https://github.com/jordimontana82/fake-xrm-easy | |
| git fetch upstream | |
| git merge upstream/master | |
| git push | |
| displayName: 'Synchronize with jordimontana82/fake-xrm-easy' | |
| env: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var result = `<?xml version="1.0" encoding="utf-8"?> | |
| <root> | |
| <!-- | |
| Microsoft ResX Schema | |
| Version 2.0 | |
| The primary goals of this format is to allow a simple XML format | |
| that is mostly human readable. The generation and parsing of the | |
| various data types are done through the TypeConverter classes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.Xrm.Sdk; | |
| using Microsoft.Xrm.Sdk.Query; | |
| using Microsoft.Xrm.Tooling.Connector; | |
| using Newtonsoft.Json; | |
| using System; | |
| using System.Configuration; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.ServiceModel; |