Advertisement
airton-junior

Estados

Mar 8th, 2023 (edited)
1,032
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.17 KB | None | 1 0
  1. Acre
  2. Roraima
  3. Amazonas
  4. Rondônia
  5. Pará
  6. Amapá
  7. Tocantins
  8. Maranhão
  9. Piauí
  10. Ceará
  11. Rio Grande do Norte
  12. Paraíba
  13. Pernambuco
  14. Alagoas
  15. Sergipe
  16. Bahia
  17. Mato Grosso
  18. Mato Grosso do Sul
  19. Goiás
  20. Distrito Federal
  21. São Paulo
  22. Rio de Janeiro
  23. Minas Gerais
  24. Espirito Santo
  25. Paraná
  26. Santa Catarina
  27. Rio Grande do Sul
  28.  
  29.  
  30.  
  31. Lost: Competitor
  32. Lost: Price
  33. Lost: Product Features
  34. Lost: Abandoned project
  35. Lost: Company budget constraints
  36. Lost: Another reason
  37. Won: Competitor
  38. Won: Price
  39. Won: Product Features
  40. Won: Another reason
  41.  
  42. IF(OR(MOD(ANO__c, 400) = 0, AND(MOD(ANO__c, 4) = 0, MOD(ANO__c, 100) <> 0)), 'BISSEXTO', 'Ñ BISSEXTO')
  43.  
  44.  
  45. Exemplos de fórmulas:
  46. Para fórmulas de gerenciamento de contas:
  47. https://help.salesforce.com/articleView?id=useful_advanced_formulas_acct_mgmt.htm&type=5
  48.  
  49. Para fórmulas de gerenciamento de casos:
  50. https://help.salesforce.com/articleView?id=useful_advanced_formulas_case_mgmt.htm&type=5
  51.  
  52. Para fórmulas de cálculo de comissão:
  53. https://help.salesforce.com/articleView?id=useful_advanced_formulas_commission.htm&type=5
  54.  
  55. Para fórmulas de gerenciamento de Contatos:
  56. https://help.salesforce.com/articleView?id=useful_advanced_formulas_contact_mgmt.htm&type=5
  57.  
  58.  
  59. Exemplos de fórmulas:
  60. Para fórmulas de data:
  61. https://help.salesforce.com/articleView?id=formula_examples_dates.htm&type=5
  62.  
  63. Para fórmulas de desconto:
  64. https://help.salesforce.com/articleView?id=useful_advanced_formulas_discounting.htm&type=5
  65.  
  66. Para fórmulas de cálculos financeiros:
  67. https://help.salesforce.com/articleView?id=useful_advanced_formulas_financial.htm&type=5
  68.  
  69. Para fórmulas de link de imagens:
  70. https://help.salesforce.com/articleView?id=useful_advanced_formulas_image_links.htm&type=5
  71.  
  72.  
  73. CEILING (2.5) = 3.0
  74.  
  75. IF(ISPICKVAL(StageName, 'Closed Won'), Amount * 0.1, 0)
  76.  
  77. http://maps.google.com/maps?q={!Account_BillingStreet}%20{!Account_BillingCity}%20{!Account_BillingState}%20{!Account_BillingPostalCode}
  78.  
  79.  
  80. Orientações para o sucesso
  81. Se seu lead não tem interesse ou autoridade para adquirir um sistema de energia solar, marque o lead como Reprovado.
  82. Não perca tempo com leads reprovados.
  83. Conheça bem a fonte do lead antes de passar tempo tentando vender um produto para o qual ele ainda não está pronto.
  84. Entenda o nível de autoridade do lead e os requisitos da solução.
  85. Determine a probabilidade de seu lead adquirir o produto.
  86.  
  87.  
  88. Orientações para o sucesso
  89. Maravilha!
  90. Depois de marcar esse lead como Qualificado, siga os prompts para que ele seja convertido em um contato. Não se esqueça de criar uma oportunidade quando for solicitado.
  91.  
  92. *****************************************************************
  93. Qualify the opportunity and confirm budget:
  94. What problems are they trying to solve?
  95. How does solving these problems help them?
  96. What is their budget?
  97.  
  98.  
  99. OR(
  100. LEN( BillingCountry ) = 1 ,
  101. NOT( CONTAINS(
  102. "AF:AX:AL:DZ:AS:AD:AO:AI:AQ:AG:AR:AM: AW:AU:AZ:BS:BH:BD:" &
  103. "BB:BY:BE:BZ:BJ:BM:BT:BO: BA:BW:BV:BR:IO:BN:BG:BF:BI:KH:" &
  104. "CM:CA:CV:KY:CF:TD:CL:CN:CX:CC:CO:KM:CG:CD:CK:CR:CI:HR:" &
  105. "CU:CY:CZ:DK:DJ:DM:DO:EC:EG:SV:GQ:ER:EE:ET:FK:FO:FJ:FI:FR:" &
  106. "GF:PF:TF:GA:GM:GE:DE:GH:GI:GR:GL:GD:GP:GU:GT:GG:GN:" &
  107. "GW:GY:HT:HM:VA:HN:HK:HU:IS:IN:ID:IR:IQ:IE:IM:IL:IT:JM:JP:JE:" &
  108. "JO:KZ:KE:KI:KP:KR:KW:KG:LA:LV:LB:LS:LR:LY:LI:LT:LU:MO:MK:" &
  109. "MG:MW:MY:MV:ML:MT:MH:MQ:MR:MU:YT:MX:FM:MD:MC:" &
  110. "MC:MN:ME:MS:MA:MZ:MM:MA:NR:NP:NL:AN:NC:NZ:NI:" &
  111. "NE:NG:NU:NF:MP:NO:OM:PK:PW:PS:PA:PG:PY:PE:PH:PN:PL:PT:" &
  112. "PR:QA:RE:RO:RU:RW:SH:KN:LC:PM:VC:WS:SM:ST:SA:SN:RS:" &
  113. "SC:SL:SG:SK:SI:SB:SO:ZA:GS:ES:LK:SD:SR:SJ:SZ:SE:CH:SY:TW:TJ:" &
  114. "TZ:TH:TL:TG:TK:TO:TT:TN:TR:TM:TC:TV:UG:UA:AE:GB:US:UM:" &
  115. "UY:UZ:VU:VE:VN:VG:VI:WF:EH:YE:ZM:ZW",
  116. BillingCountry ) ) )
  117.  
  118.  
  119.  
  120.  
  121.  
  122. Has_Support_Plan__c = True &&
  123. NOT ISPICKVAL(Support_Level__c, "Platinum") &&
  124. NOT ISPICKVAL(Support_Level__c, "Gold") &&
  125. NOT ISPICKVAL(Support_Level__c, "Silver")
  126.  
  127.  
  128.  
  129. List<Account> listaContas = [SELECT Id, Name, Industry FROM Account WHERE Industry = null];
  130. List<Account>listaPronta = new List<Account>();
  131. Integer i = 0;
  132. for(Account a:listaContas){
  133. a.Industry = 'Technology';
  134. listaPronta.add(a);
  135. //listaPronta.add(a);
  136. //System.debug(a.Name+' - '+a.Industry);
  137. System.debug(listaPronta[i]);
  138. i++;
  139. }
  140. update listaPronta;
  141.  
  142.  
  143.  
  144. public class MetadataUtility {
  145.  
  146. public static void generateField(String objectAPIName, String fieldAPIName, String fieldLabel){
  147. String metadata = '{"Metadata" : {"type" : "Currency","precision" : 18,"scale" : 1,"label" : "' + fieldLabel + '","required" : false},"fullName" : "'+objectAPIName+'.'+fieldAPIName+'"}';
  148. String responseBody = createField(metadata);
  149. }
  150.  
  151. public static String createField(String metadata) {
  152. HttpRequest request = new HttpRequest();
  153. request.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionID());
  154. request.setHeader('Content-Type', 'application/json');
  155. request.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm()+
  156. +'/services/data/v51.0/tooling/sobjects/CustomField');
  157. request.setMethod('POST');
  158. request.setBody(metadata);
  159. Http http = new Http();
  160. HTTPResponse res = http.send(request);
  161. return res.getBody();
  162. }
  163. }
  164.  
  165.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement