• shailesh.gusain.sfd1.3960741070027976E12
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 8
    Replies
Hi Salesforce Developers,

I have a trigger that converts the leads that are being created by a specific user to accounts. There is a custom email field in lead which is mapped to a custom email field in account. My trigger works fine if at the time of lead creation there is no value in that email field but as soon as I populate that email field I get the following error:

caused by: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, "A trigger that updateds the account when the value in one of the account fields in changed" execution of AfterInsert

caused by: System.DmlException: Update failed. First exception on row 0 with id 00119000004OoUHAA0; first error: UNKNOWN_EXCEPTION, externalized text label not found, section: 'udd_HotOrganization' missing: []

We are using dupblocker in our org and I'm suspicious that this is happening becasuse there is a dupblocker scenario on the custom email field in account. 

Does anybody have any resolutions/workarounds for this issue?

Thanks,
following code i am using to get acces token from GOOGLE ADWORDS it showing -error 400 with
  grant_type:invalid
  code:invalid
  though my auth code is correct:
  can anybody tell me what am i missing here?
 
       public void AccessToken() 
                            { 
        //Getting access token from google
        redirect_uri = encodingutil.urlEncode(redirect_uri, 'UTF-8');
        code = encodingutil.urlEncode(code , 'UTF-8');
        secret  = encodingutil.urlEncode(secret , 'UTF-8');
        key = encodingutil.urlEncode(key, 'UTF-8');
      
        HttpRequest req = new HttpRequest(); 
        req.setMethod('POST'); 
        req.setEndpoint('https://accounts.google.com/o/oauth2/token'); 
        req.setHeader('content-type', 'application/x-www-form-urlencoded'); 
        String messageBody = 'code='+code+'&client_id='+key+'&client_secret='+secret+'&redirect_uri='+redirect_uri+'&grant_type=authorization_code'; 
        req.setHeader('Content-length', String.valueOf(messageBody.length())); 
        req.setBody(messageBody); 
        req.setTimeout(60*1000); 
 
        Http h = new Http(); 
        String resp; 
        HttpResponse res = h.send(req); 
        resp = res.getBody(); 
         
        System.debug(' You can parse the response to get the access token ::: ' + resp); 
       }
    }
hello

I have a requirement to integrate salesforce with google adwords. so that we can create ,run and stop a campaign through salesforce. i just need a bit of help to start with code. we can integrate it with SOAP API. has anyone done it before?

Thanks in advance
Shailesh 
Hello everyone

I have a requirement to build a simple page which caches salesforce data  when i go offline, and auto sync when i come online for moblie site. Can we do it with simple html 5 and javascript? what sort of javascript we will use? i dont want to use mobile sdk. is there any solution regarding this. i have build a page wgich can save data offline usiing offline.js but can not sync it back with salesforce.
Also can we use salesforce logged in session offline?

Regards
Shailesh Gusain
hello
 
i am facing problem with manifest attribute in visualforce page. i want to use my page for offline usage i am on primary stage as with example provided by developer community. i wrote page as..

this my page which i will use offline
<apex:page doctype="html-5.0" manifest="/apex/CacheManifest" showheader="false" sidebar="false" standardstylesheets="false">
  <header>   <h1>  Congratulations!</h1></header>
<article>    This page looks almost like HTML5! </article>
<img src="/img/seasonLogos/2014_summer_aloha.png" />
</apex:page>

<!-- manifest page -->
<apex:page contentType="text/cache-manifest" applyHtmlTag="false" standardStylesheets="false" showHeader="false">
CACHE MANIFEST
#img
/img/seasonLogos/2014_summer_aloha.png
</apex:page>

but the error i have got in while inspecting the element is
Application Cache Error event: Failed to parse manifest 

can anyone tell me where am i doing wrong?

Regards
Shailesh


I need to create a webhook for salesforce in data insertion from external system(chargebee) for every event that occurs in chargebee that will hit the webhook URL to send notification in salesforce. any idea how to start on it...