2 replaced http://salesforce.stackexchange.com/ with https://salesforce.stackexchange.com/
source | link

Pramod,

This is a Salesforce limitation that you cannot perform a specific DML along with a callout on single context, you can use @future annotation to move out the DML or the call out as looks like Logger.debug will perform DML here.

Check out - http://salesforce.stackexchange.com/questions/41440/system-calloutexception-you-have-uncommitted-work-pendingSystem.CalloutException: You have uncommitted work pending Ray

Pramod,

This is a Salesforce limitation that you cannot perform a specific DML along with a callout on single context, you can use @future annotation to move out the DML or the call out as looks like Logger.debug will perform DML here.

Check out - http://salesforce.stackexchange.com/questions/41440/system-calloutexception-you-have-uncommitted-work-pending Ray

Pramod,

This is a Salesforce limitation that you cannot perform a specific DML along with a callout on single context, you can use @future annotation to move out the DML or the call out as looks like Logger.debug will perform DML here.

Check out - System.CalloutException: You have uncommitted work pending Ray

1
source | link

Pramod,

This is a Salesforce limitation that you cannot perform a specific DML along with a callout on single context, you can use @future annotation to move out the DML or the call out as looks like Logger.debug will perform DML here.

Check out - http://salesforce.stackexchange.com/questions/41440/system-calloutexception-you-have-uncommitted-work-pending Ray