• CarlSpoon
  • NEWBIE
  • 50 Points
  • Member since 2010

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

Does anyone know how to modify a Custom Object Permission,  under the Manage User/Profiles?

Users in the Standard user profile are getting the following error message when they tried to execute a Java Script that creates a record the custom object – PricingRequest__c.

 Faultcode:’sf:INVALID_TYPE,faultstring:INVALID_TYPE:sObject type ‘PricingRequest__c’ is not supported. 

Here is the code:

    //#####################################    //Handle the Database interaction for the Pricing Request Object    function UpdatePricingRequest(){                   //If an existing Pricing Request is being edited, no datanbase updates for the pricing Request Object      if( prid != "null") return;                 // Creating a new Pricing Request, update the database.       try       {         var pr = new sforce.SObject("PricingRequest__c");                  //Populate the fields on the Pricing Request Object         pr.Opp_Name__c = ['{!opportunity.id}'];         pr.Status__c = ['New'];          pr.PR_Flag__c = 0;         pr.Sales_rep__c = ['{!opportunity.Owner.Name}'];         //Save the Pricing Request Object into the database              var result = sforce.connection.create([pr]);          //Check if a PricingRequest Object was successfully saved in the database                    if (result[0].getBoolean('success')) {                            prid = result[0].id;             databaseUpdate = ['success'];         } else {             databaseUpdate = ['failed'];             alert("Failed to create Pricing Request: " + result[0]);                      }       } catch(e) {         alert("Create Pricing Request ERROR: " + e);                    databaseUpdate = ['failed'];       }

     }   

 

The Administrator’s profile was able to execute the script without error, but the Standard User profile failed.  Do you know why there are getting this error?

Does any one have a sample code in VB.net on how to download/upload attachments from a customer controller (NotesAndAttachments relatedlist)?

Does anyone know how to modify a Custom Object Permission,  under the Manage User/Profiles?

Users in the Standard user profile are getting the following error message when they tried to execute a Java Script that creates a record the custom object – PricingRequest__c.

 Faultcode:’sf:INVALID_TYPE,faultstring:INVALID_TYPE:sObject type ‘PricingRequest__c’ is not supported. 

Here is the code:

    //#####################################    //Handle the Database interaction for the Pricing Request Object    function UpdatePricingRequest(){                   //If an existing Pricing Request is being edited, no datanbase updates for the pricing Request Object      if( prid != "null") return;                 // Creating a new Pricing Request, update the database.       try       {         var pr = new sforce.SObject("PricingRequest__c");                  //Populate the fields on the Pricing Request Object         pr.Opp_Name__c = ['{!opportunity.id}'];         pr.Status__c = ['New'];          pr.PR_Flag__c = 0;         pr.Sales_rep__c = ['{!opportunity.Owner.Name}'];         //Save the Pricing Request Object into the database              var result = sforce.connection.create([pr]);          //Check if a PricingRequest Object was successfully saved in the database                    if (result[0].getBoolean('success')) {                            prid = result[0].id;             databaseUpdate = ['success'];         } else {             databaseUpdate = ['failed'];             alert("Failed to create Pricing Request: " + result[0]);                      }       } catch(e) {         alert("Create Pricing Request ERROR: " + e);                    databaseUpdate = ['failed'];       }

     }   

 

The Administrator’s profile was able to execute the script without error, but the Standard User profile failed.  Do you know why there are getting this error?

Does any one have a sample code in VB.net on how to download/upload attachments from a customer controller (NotesAndAttachments relatedlist)?