Busca de CEP via Java script web service CRM Dynamics 2011 / 2013
function BuscaCEP(){
var cep = Xrm.Page.getAttribute("address1_postalcode").getValue();
/*Limpa os Valores do Campos de Endereço*/
/*Faz a chamado do Web Service e popula os campos com o retorno obtido*/
/*Mensagem de alerta caso o endereço não seja localizado*/
Xrm.Page.getAttribute("address1_line1").setValue('');
Xrm.Page.getAttribute("address1_line2").setValue('');
Xrm.Page.getAttribute("address1_city").setValue('');
Xrm.Page.getAttribute("address1_stateorprovince").setValue('');
Xrm.Page.getAttribute("address1_country").setValue('');
$.getScript("http://cep.republicavirtual.com.br/web_cep.php?formato=javascript&cep=" + cep, function(){
if(resultadoCEP["resultado"] == 1){
var TipoLogradouro = resultadoCEP["tipo_logradouro"] + ' ' + resultadoCEP["logradouro"];
Xrm.Page.getAttribute("address1_line1").setValue(unescape(TipoLogradouro));
Xrm.Page.getAttribute("address1_line2").setValue(unescape(resultadoCEP["bairro"]));
Xrm.Page.getAttribute("address1_city").setValue(unescape(resultadoCEP["cidade"]));
Xrm.Page.getAttribute("address1_stateorprovince").setValue(unescape(resultadoCEP["uf"]));
Xrm.Page.getAttribute("address1_country").setValue("Brasil");
}
if(resultadoCEP["resultado"] == 0){
alert("Endereço não Localizado!");
}
});
}
terça-feira, 21 de julho de 2015
quarta-feira, 24 de junho de 2015
Install CRM 2013
Backup do banco de dados MS CRM 2013
https://msdn.microsoft.com/pt-br/ptbr/library/hh699772.aspx
Instalação do CRM 2013
http://blogs.msdn.com/b/niran_belliappa/archive/2013/11/05/step-by-step-installing-dynamics-crm-2013-on-windows-server-2012.aspx
quarta-feira, 17 de junho de 2015
E-mail router nao inicia
E-mail router não inicia
Ao reiniciar e-mail router e você receber um erro como este:
"The Microsoft CRM Email Router service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."
Apague este arquivo.
Ao reiniciar e-mail router e você receber um erro como este:
"The Microsoft CRM Email Router service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."
Apague este arquivo.
C:\Arquivos de Programas\Microsoft CRM\mail\Service \Microsoft.Crm.Tools.EmailAgent.SystemState.xml
Depois de excluir o arquivo, você pode iniciar o seu serviço e-mai lrouter e sistema irá criar este xml novamente.
https://andersoneloivaz.wordpress.com/2015/05/18/an-error-occurs-during-installation-of-the-email-router-in-microsoft-dynamics-crm-2013-action-microsoft-crm-setup-common-analyzercollectaction-failed-fatal-error-during-installation/
quinta-feira, 11 de junho de 2015
Traduzindo Campos de endereço em Dynamics Microsoft CRM 2013
Traduzindo Campos de endereço em Dynamics Microsoft CRM 2013
http://www.magnetismsolutions.com/blog/colinmaitland/2013/10/28/translating-address-fields-in-dynamics-microsoft-crm-2013
http://www.magnetismsolutions.com/blog/colinmaitland/2013/10/28/translating-address-fields-in-dynamics-microsoft-crm-2013
segunda-feira, 12 de janeiro de 2015
Entity statecodes and statuscodes CRM
StateCode e StatusCode CRM - 2011 e 2013
Entity
|
Status (statecode)
| Status Reason (statuscode)
|
Account (account)
|
0 Active
|
1 Active
|
1 Inactive
|
2 Inactive
| |
Activity (activitypointer)
|
0 Open
|
1 Open
|
1 Completed
|
2 Completed
| |
2 Canceled
|
3 Canceled
| |
3 Scheduled
|
4 Scheduled
| |
Appointment (appointment)
|
0 Open
|
1 Free
|
2 Tentative
| ||
1 Completed
|
3 Completed
| |
2 Canceled
|
4 Canceled
| |
3 Scheduled
|
5 Busy
| |
6 Out of Office
| ||
Article (kbarticle)
|
1 Draft
|
1 Draft
|
2 Unapproved
|
2 Unapproved
| |
3 Published
|
3 Published
| |
Campaign (campaign)
|
0 Active
|
0 Proposed
|
1 Ready To Launch
| ||
2 Launched
| ||
3 Completed
| ||
4 Canceled
| ||
5 Suspended
| ||
Campaign Activity (campaignactivity)
|
0 Open
|
0 In Progress
|
1 Proposed
| ||
4 Pending
| ||
5 System Aborted
| ||
6 Completed
| ||
1 Closed
|
2 Closed
| |
2 Canceled
|
3 Canceled
| |
Campaign Response (campaignresponse)
|
0 Open
|
1 Open
|
1 Closed
|
2 Closed
| |
2 Canceled
|
3 Canceled
| |
Case (incident)
|
0 Active
|
1 In Progress
|
2 On Hold
| ||
3 Waiting for Details
| ||
4 Researching
| ||
1 Resolved
|
5 Problem Solved
| |
2 Canceled
|
6 Canceled
| |
Case Resolution (incidentresolution, notcustomizable)
|
0 Open
|
1 Open
|
1 Completed
|
2 Closed
| |
2 Canceled
|
3 Canceled
| |
Contact (contact)
|
0 Active
|
1 Active
|
1 Inactive
|
2 Inactive
| |
Contract (contract)
|
0 Draft
|
1 Draft
|
1 Invoiced
|
2 Invoiced
| |
2 Active
|
3 Active
| |
3 On Hold
|
4 On Hold
| |
4 Canceled
|
5 Canceled
| |
5 Expired
|
6 Expired
| |
Contract Line (contractdetail)
|
0 Existing
|
1 New
|
1 Renewed
|
2 Renewed
| |
2 Canceled
|
3 Canceled
| |
3 Expired
|
4 Expired
| |
Currency (transactioncurrency)
|
0 Active
|
0 Active
|
1 Inactive
|
1 Inactive
| |
Discount (discounttype)
|
0 Active
|
100001 Active
|
1 Inactive
|
100002 Inactive
| |
E-mail (email)
|
0 Open
|
1 Draft
|
8 Failed
| ||
1 Completed
|
2 Completed
| |
3 Sent
| ||
4 Received
| ||
6 Pending Send
| ||
7 Sending
| ||
2 Canceled
|
5 Canceled
| |
Fax (fax)
|
0 Open
|
1 Open
|
1 Completed
|
2 Completed
| |
3 Sent
| ||
4 Received
| ||
2 Canceled
|
5 Canceled
| |
Invoice (invoice)
|
0 Active
|
1 New
|
2 Partially Shipped
| ||
4 Billed
| ||
5 Booked (applies to services)
| ||
6 Installed (applies to services)
| ||
1 Closed (deprecated)
|
3 Canceled (deprecated)
| |
7 Paid in Full (deprecated
| ||
2 Paid
|
100001 Complete
| |
100002 Parial
| ||
3 Canceled
|
100003 Canceled
| |
Lead (lead)
|
0 Open
|
1 New
|
2 Contacted
| ||
1 Qualified
|
3 Qualified
| |
2 Disqualified
|
4 Lost
| |
5 Cannot Contact
| ||
6 No Longer Interested
| ||
7 Canceled
| ||
Letter (letter)
|
0 Open
|
1 Open
|
2 Draft
| ||
1 Completed
|
3 Received
| |
4 Sent
| ||
2 Canceled
|
5 Canceled
| |
Marketing List (list)
|
0 Active
|
0 Active
|
1 Inactive
|
1 Inactive
| |
Opportunity (opportunity)
|
0 Open
|
1 In Progress
|
2 On Hold
| ||
1 Won
|
3 Won
| |
2 Lost
|
4 Canceled
| |
5 Out-Sold
| ||
Order (salesorder)
|
0 Active
|
1 New
|
2 Pending
| ||
1 Submitted
|
3 In Progress
| |
2 Canceled
|
4 No Money
| |
3 Fulfilled
|
100001 Complete
| |
100002 Partial
| ||
4 Invoiced
|
10003 Invoiced
| |
Phone Call (phonecall)
|
0 Open
|
1 Open
|
1 Completed
|
2 Made
| |
4 Received
| ||
2 Canceled
|
3 Canceled
| |
Price List (pricelevel)
|
0 Active
|
100001 Active
|
1 Inactive
|
10002 Inactive
| |
Product (product)
|
0 Active
|
1 Active
|
1 Inactive
|
2 Inactive
| |
Quote (quote)
|
0 Draft
|
1 In Progress
|
1 Active
|
2 In Progress
| |
3 Open
| ||
2 Won
|
4 Won
| |
5 Out-Sold
| ||
3 Closed
|
5 Lost
| |
6 Canceled
| ||
7 Revised
| ||
Service Activity (serviceappointment)
|
0 Open
|
1 Requested
|
2 Tentative
| ||
1 Closed
|
8 Completed
| |
2 Canceled
|
9 Canceled
| |
10 No Show
| ||
3 Scheduled
|
3 Pending
| |
4 Reserved
| ||
6 In Progress
| ||
7 Arrived
| ||
Task (task)
|
0 Open
|
2 Not Started
|
3 In Progress
| ||
4 Waiting on someone else
| ||
7 Deferred
| ||
1 Completed
|
5 Completed
| |
2 Canceled
|
6 Canceled
|
Assinar:
Postagens (Atom)