• Ahmad
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Hi Everyone,

 

We are syncing SFDC with our Customer database using Perl API. 

When we want to update picklist on SFDC side with null value (e.g., not selected), it does not get updated.

 

Which value should we pass through Perl API so picklist gets reset to NULL?

  • September 26, 2012
  • Like
  • 0

I've been trying to do this by setting the DML options, but it doesn't seem to be working.

 

Stuck as to what I'm doing wrong.

This is the code I'm using:

 

    public PageReference doSave()
    {
        List<sObject> sList=setCon.getSelected();
        List<CaseComment> ccList=new List<CaseComment>();
        for(sObject s:sList)
        {
            s.Put('Status',CaseStatus);
            s.Put('Reason',CaseReason);
            if(!String.isBlank(Comment))
            {
                ccList.Add(new CaseComment(CommentBody=Comment, ParentId=(Id)s.Get('id'), isPublished=PublicComment));
            }
        }
        if(!ccList.isEmpty())
        {
            Database.DMLOptions dmlOpts = new Database.DMLOptions();
            dmlOpts.EmailHeader.triggerAutoResponseEmail = true;
            dmlOpts.EmailHeader.triggerOtherEmail = true;
            database.insert(ccList,dmlOpts);
        }
        return setCon.save();
    }

we have to add 200 users every month . But we want to reset the password using data loader at a later stage after adding the users.
Is this possible?