I have a trigger which having nested if and else conditions.If i use more DML soql then i am reaching the governor limit. I have only covered only 40%.So is there any alternative way of testmethod to cover Trigger coverage . Below is the sample code of trigger.Please help me its very urgent.
Can portal user set a security answer ?? is there any way to implement this for the portal user??
i need this for Site implementation..
can any one help we the exact httpreqest with access token . I am using this but getiing a response "Bad_OAuth_Token" which comes when you are passing the wrong token.
httprequest hreq=new httprequest();
hreq.setHeader('Authorization: ','OAuth 00D90000000aSjo!AQgAQNfbCS3aunHX37ko2VhwXzk4holpYFrU9juuCIMdanXC54DAjI916nYNvzZHjOV2vRubCiT1XZGeongMBAVxtdMfpLlN');
http htp=new http();
httpResponse res=htp.send(hreq);system.debug('%%%%%%%%%%%%%' +res);
Can any one help me on this???????????????