Skip to content

Instantly share code, notes, and snippets.

else if (entityLogicalNameValue.ToString() == "contact")
{
Console.WriteLine("--------------------------------");
Console.WriteLine(string.Format("Message received: Id = {0}", message.MessageId));
// Display message properties that are set on the brokered message.
Utility.PrintMessageProperties(message.Properties);
// Display body details.
Utility.Print(message.GetBody<RemoteExecutionContext>());
Console.WriteLine("--------------------------------");
}
@hardvin
hardvin / Crear service Bus power shell
Created April 26, 2016 23:27
Crear service Bus power shell
// Ejemplo (No corras este en la consola)
New-AzureSBNamespace -Name [NombreServicebus] -Location "North Europe" -NamespaceType Messaging -CreateACSNamespace $true
// Como lo creé yo (Corre este en la consola, cambia el Name por tu Name)
New-AzureSBNamespace -Name IntegracionCRMIG -Location "North Europe" -NamespaceType Messaging -CreateACSNamespace $true
@hardvin
hardvin / AssignRequest.cs
Last active March 30, 2016 22:58
Asignación registro Dynamics CRM 2011
// Assign the account to a team.
AssignRequest assignRequest = new AssignRequest()
{
Assignee = new EntityReference
{
LogicalName = "LogicalNameEntidadUsuarioOEntidadEquipo",
Id = new Guid("GuidDelUsuarioOEqupoAAsignar")
},
Target = new EntityReference("LogicalnameDelRegistroaAsignar", new Guid("IddelRegistroAAsignar"))
};