This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<Weavers> | |
<Costura> | |
<IncludeAssemblies> | |
Foo.Crm.External | |
</IncludeAssemblies> | |
<Target | |
AfterTargets="AfterBuild;NonWinFodyTarget" | |
Name="CleanReferenceCopyLocalPaths" > | |
<Delete Files="@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)')" /> |
This file contains 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
function FormOnLoad(){ | |
var eventHandler = function(executionContext){ | |
alert(executionContext.getEventSource().getName()); | |
} | |
var attributes = Xrm.Page.getAttribute(); | |
attributes.forEach(function(element) { | |
element.addOnChange(eventHandler); | |
}); |
This file contains 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 System; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace RsaEncryptionSample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains 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
{ | |
"code": 1045, | |
"language": "Polish", | |
"alphabet": [ | |
[ "ą", "a" ], | |
[ "Ą", "A" ], | |
[ "ó", "o" ], | |
[ "Ó", "O" ], | |
[ "ę", "e" ], | |
[ "Ę", "E" ], |
This file contains 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 System; | |
namespace XrmLabs.Library | |
{ | |
public class Worker | |
{ | |
public Worker() { } | |
private void DoSecretJob() | |
{ |
This file contains 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 System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using XrmLabs.Library; | |
namespace XtmLabs.Tests | |
{ | |
[TestClass] | |
public class WorkerTests | |
{ | |
[TestMethod] |
This file contains 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
[ | |
{ | |
"outputFileName": "pg_/bundles/accountBundle.js", | |
"inputFiles": [ | |
"pg_/js/common.js", | |
"pg_/js/account.js" | |
] | |
}, | |
{ | |
"outputFileName": "pg_/bundles/contactBundle.js", |
This file contains 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
window.addEventListener("message", receiveMessage, false); | |
function receiveMessage(event) { | |
if (event.origin !== "http://my.source.com"){ | |
return; | |
} | |
// Kod obsługujący odebrany komunikat. | |
// ... | |
} |
This file contains 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
window.postMessage(JSON.stringify(obj), destinationUrl); |
This file contains 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
public bool IsEntityActivitiesRelated(IOrganizationService service, string entityName) | |
{ | |
var response = service.Execute(new RetrieveEntityRequest | |
{ | |
EntityFilters = EntityFilters.Relationships, | |
LogicalName = entityName, | |
RetrieveAsIfPublished = true | |
}) as RetrieveEntityResponse; | |
if (response?.EntityMetadata?.OneToManyRelationships != null) |
OlderNewer