Activity Forums Salesforce® Discussions How to throw error for Salesforce external Id field null values?

  • Sudhir

    Member
    June 9, 2017 at 2:44 am

    Throw error where ? Do you wanted to keep transaction information in an Integration Logger?

    Make use of Database.upsert(), iterate over Database.upsertResult and use isSuccess() and getError() to get the error message if any.

  • Shaik

    Member
    June 9, 2017 at 6:23 pm

    To get External ID from outside sales force Environment

    1. Either you have to hit their API via soap/Rest API call or
    2. you have to provide them the login creds of your org and Object API name along with External Id API name as defined in sales force.

    for option 1 : you can write your own Integration code to check for the External Id null values where you can throw error saying "Following record Ids have null values" 🙂

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos