• htdev
  • NEWBIE
  • 0 Points
  • Member since 2004

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

I'm trying to create a new deactivated price book via API calls. I was able to create a new pricebook when I do not use the setIsActive() method. When I use the setIsActive() method to create a deactived pricebook, I get the following message:

bad field names on insert/update call: IsActive

So I tried creating a price book in which I specify true instead of false for setIsActive() method, but it still give the same message. I also tried creating a new standard pricebook and try to update the price book. This also fail.

Is there a way to create a new deactivated pricebook? Any help would be greatly appreciated,

Thanks,
htdev

Here is a sniplet of my code:

SObject[] objs = new SObject[1];
Pricebook pb = new Pricebook();
pb.setName(pricebookName);
pb.setIsActive(Boolean.valueOf(false));
SaveResult[] saveResults = null;
try {
saveResults = binding.create(objs);
} catch (UnexpectedErrorFault uef) {
System.out.println("UEF Exception: "+uef.getExceptionMessage() + "\n\n");
return emptyID;
} catch (Exception e) {
System.out.println("Exception:"+e+"\n\n");
//e.printStackTrace();
return emptyID;
}
  • February 29, 2004
  • Like
  • 0
Hi,

I'm a new developer, so this might be a silly question. I have created a Web Integration Link which uses scontrol, which in turn call a Java Applet. The applet runs fine locally on my labtop, but it is not showing up on the site.
Here is my html code for my scontrol object:





where in place of xxx I have put my applet class file, and also tried {!Scontrol_URL}.

Can someone please help? Any suggestions would be greatly appreciated.

Han
  • January 19, 2004
  • Like
  • 0
Hi,

I'm a new developer, so this might be a silly question. I have created a Web Integration Link which uses scontrol, which in turn call a Java Applet. The applet runs fine locally on my labtop, but it is not showing up on the site.
Here is my html code for my scontrol object:





where in place of xxx I have put my applet class file, and also tried {!Scontrol_URL}.

Can someone please help? Any suggestions would be greatly appreciated.

Han
  • January 19, 2004
  • Like
  • 0