- You use Foam for VSCode to manage your notes
- You wish to adopt a practice such as A writing inbox for transient and incomplete notes
- You wish to use Drafts Pro to capture quick notes into your Foam notes from your iOS device
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
Verifying that +julianelve is my blockchain ID. https://onename.com/julianelve |
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
gci -include debug,release -recurse | | |
% {gci -path $_.PSPath -File | | |
% { | |
Write-Host $_.Name | |
$_.Delete() | |
} | |
} |
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
// issue invoice | |
var setStateRequest = new SetStateRequest | |
{ | |
EntityMoniker = new EntityReference(Invoice.EntityLogicalName, invoice.Id), | |
State = new OptionSetValue((int)InvoiceState.Active), | |
Status = new OptionSetValue((int)invoice_statuscode.ReadyToIssue) | |
}; | |
Service.Execute(setStateRequest); |
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
var invoiceEntity = new Entity(Invoice.EntityLogicalName) { Id = invoiceRef.Id }; | |
invoiceEntity["statecode"] = new OptionSetValue((int)InvoiceState.Active); | |
invoiceEntity["statuscode"] = new OptionSetValue((int)invoice_statuscode.ReadyToIssue); | |
tracingService.Trace("Update invoice status to Ready To Issue, Id:{0}", invoiceEntity.Id); | |
service.Update(invoiceEntity); |
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
var invoiceEntity = new Entity(Invoice.EntityLogicalName) { Id = invoiceRef.Id }; | |
// do not attempt to set the statecode - if you do this code will fire workflows twice | |
// invoiceEntity["statecode"] = new OptionSetValue((int)InvoiceState.Active); | |
invoiceEntity["statuscode"] = new OptionSetValue((int)invoice_statuscode.ReadyToIssue); | |
tracingService.Trace("Update invoice status to Ready To Issue, Id:{0}", invoiceEntity.Id); | |
service.Update(invoiceEntity); |
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
var setStateToIssued = function(invoiceId) { | |
window.console.log('setStateToIssued(' + invoiceId + ')'); | |
invoiceId = invoiceId.replace(/[{}]/g, ""); | |
var url = Xrm.Page.context.getClientUrl() + "/api/data/v8.2/invoices(" + invoiceId + ")"; | |
var entity = {}; | |
//entity.statecode = 0; //commenting because we think setting state AND status causes workflows to fire twice | |
entity.statuscode = 293750003; // Ready To Issue | |
var req = new XMLHttpRequest(); | |
req.open("PATCH", url, true); | |
req.setRequestHeader("OData-Version", "4.0"); |
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.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using System.Security; | |
using System.Security.Claims; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web; |
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.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using System.Security; | |
using System.Security.Claims; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web; |
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/ |
OlderNewer