Git Product home page Git Product logo

Comments (4)

douglascayers avatar douglascayers commented on June 6, 2024 1

Hi @trilame, thanks for reporting the issue. When I get a chance to dig into this I'll follow up.

from sfdc-lead-conversion-record-types.

douglascayers avatar douglascayers commented on June 6, 2024 1

Hi @trilame, I've updated the code so the tests pass. You may want to check out my latest blog post on using Process Builder for a non-code solution: https://douglascayers.wordpress.com/2016/06/26/advanced-lead-conversion-with-process-builder/

from sfdc-lead-conversion-record-types.

trilame avatar trilame commented on June 6, 2024 1

Hello,

It works very well now! Thanks a lot for all of this.

I also checked the solution through the process builder, which looks great: maybe I'll try this one on another instance.

from sfdc-lead-conversion-record-types.

douglascayers avatar douglascayers commented on June 6, 2024

Hi @trilame, I think I see the issue. The test code is looking for specific record type names which likely don't ever exist in other people's orgs. I believe this can be improved by just dynamically grabbing a record type from each of the objects so that existing record types in a customer's org are used and the test should pass. But... an even better solution is to use Process Builder!

Before Process Builder was released my only option was to go this route with apex code. I will write up a blog post how to do it with Process Builder so you don't have to wrangle with all this code =)

Thanks,

Doug

from sfdc-lead-conversion-record-types.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.