• komathipriya
  • NEWBIE
  • 24 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 10
    Replies
Hi ,
I created a Salesforce site , to make a rest api call from out side website. Even if stop the object permission my rest api class can create records to the objects. Where as my normal class not allowing to create records in the object with out permission. Also i try to set field level permissions.
How to make the rest api class to obey the object permissions ?
Below is the code i used

@RestResource(urlMapping='/myservice')
global with sharing class MyService
 {          
       @HttpPost    
        global static void doPost() 
        {
            I will get the Json string from other site and insert into my custome object.
            If i remove the permission of the object it should not create records.
        }
}
 
Hi ,

I'm new to the FFA , and  i created the first rule to migrate the custom object field values to Product object .
If i run the job it created the products, if  i did update and run jobs it's creation again create the new rows in product object.
but i need to update in same records. 

so followed the steps in the http://help.financialforce.com/clicklink/1X/Default.htm#topics/SettingupSynchronization.htm%3FTocPath%3DUsing%20the%20Application%7CClickLink%20Rules%7CSynchronization%7C_____1 

but nothing appen after the update, in the source object i added the trigger mentioned , any thing else need to do? 

below is the rule page i created with mapping rules
the rules page after setting all things needed
Hi ,
I created the Command line data loader, which not working in windows 8 but working fine in the windows 7 and xp,
This is the script i'm using to call me beans in conf file.
java -cp ../lib/EnhencedDataloader.jar -Dsalesforce.config.dir="../conf" com.salesforce.dataloader.process.ProcessRunner process.name=extractPreStagingSharingData



Hi 

This is my process conf file, i have similar beans for 3 more objects in same process conf file. works fine if the data count is less, tested for 100 in each file. i am geting the error if i try to insert bulk ammount(25,000) of data to more than one object at same time in my windows system. 
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="insertprocessStatus" class="com.salesforce.dataloader.process.ProcessRunner" singleton="false">
        <description>Extract Staging Data.</description>
  <!--property name="ftpService" ref="ftpUpload"/-->
  <property name="name" value="insertprocessStatus"/>
         <property name="configOverrideMap">
              <map>
                <entry key="sfdc.debugMessages" value="false"/>
                  <entry key="sfdc.debugMessagesFile" value="../status/accountMasterSoapTrace.log"/>
                  <entry key="sfdc.endpoint" value="https://test.salesforce.com"/>
                  <entry key="sfdc.username" value="mayil@sfdc.com"/>
                  <entry key="sfdc.password" 
value="066de8ada127a859f22236802ceab6cd36a20dcca57a11eacba26ec41ac9adb21de4eebc047ac11f"/>
                  <entry key="process.encryptionKeyFile" value="key.txt"/>
                  <entry key="sfdc.timeoutSecs" value="600"/>
                  <entry key="sfdc.loadBatchSize" value="200"/>
                  <entry key="sfdc.entity" value="DataImportprocess__c"/>
                  <entry key="process.operation" value="insert"/>
      <entry key="process.mappingFile" value="../map/DataImportprocessStatusmapper.sdl"/>
                  <entry key="process.outputError" value="../extras/errorDataImportprocessStatus.csv"/>
    <entry key="process.outputSuccess" value="../extras/successDataImportprocessStatus.csv"/>
    <entry key="dataAccess.name" value="../InputCSV/DataImportProcessStatus.csv" />
                  <entry key="dataAccess.type" value="csvRead"/>
                  <entry key="process.initialLastRunDate" value="2014-03-06T00:00:00.000-0800"/>
    <entry key="process.enableLastRunOutput" value="true" />
      <entry key="process.lastRunOutputDirectory" value="../conf/"/>
                   </map>
         </property>
</bean>
     

I am having individual bat files to call each bean, and master bat file to call all the individual bat files.
the filrst insert process getting completed successfully for any number of data (17k,20k r 25k), but the in second insert call gatiing the error as 


::In Master bat file
call InsertImportprocessStatus.bat
echo Inserting the CustomerCodeUsage records in Pre-Staging
call InsertList.bat
In InsertImportprocessStatus.bat file 

java -cp ../lib/EnhencedDataloader.jar -Dsalesforce.config.dir="../conf" com.salesforce.dataloader.process.ProcessRunnerprocess.name=insertImportprocessStatus


My InsertImportprocessStatus.bat, insert all the data but getting the below error when calling InsertList.bat


ERROR [insertList] client.PartnerClient login (PartnerClient.java:1030) - Error while logging in to web service at: https://test.salesforce.com/services/Soap/u/19.0, error was: Failed to send request to https://test.salesforce.com/services/Soap/u/19.0
com.sforce.ws.ConnectionException: Failed to send request to https://test.salesforce.com/services/Soap/u/19.0
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:113)
at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:998)
at com.salesforce.dataloader.client.PartnerClient.login(PartnerClient.java:1007)
at com.salesforce.dataloader.client.PartnerClient.connect(PartnerClient.java:105)
at com.salesforce.dataloader.controller.Controller.login(Controller.java:182)
at com.salesforce.dataloader.controller.Controller.login(Controller.java:177)
at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:130)
at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:258)
Caused by: java.net.UnknownHostException: test.salesforce.com
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTransport.java:97)
at com.sforce.ws.transport.JdkHttpTransport.connect(JdkHttpTransport.java:82)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
... 7 more
2014-05-23 16:27:40,890 FATAL [main] process.ProcessRunner topLevelError (ProcessRunner.java:239) - Unable to run process insertAccountList
java.lang.RuntimeException: com.sforce.ws.ConnectionException: Failed to send request to https://test.salesforce.com/services/Soap/u/19.0
at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:164)
at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:258)
Caused by: com.sforce.ws.ConnectionException: Failed to send request to https://test.salesforce.com/services/Soap/u/19.0
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:113)
at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:998)
at com.salesforce.dataloader.client.PartnerClient.login(PartnerClient.java:1007)
at com.salesforce.dataloader.client.PartnerClient.connect(PartnerClient.java:105)
at com.salesforce.dataloader.controller.Controller.login(Controller.java:182)
at com.salesforce.dataloader.controller.Controller.login(Controller.java:177)
at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:130)
... 1 more
Caused by: java.net.UnknownHostException: test.salesforce.com
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTransport.java:97)
at com.sforce.ws.transport.JdkHttpTransport.connect(JdkHttpTransport.java:82)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
... 7 more


How to solve this issue

Hi,

 

i want to update the Lookup value as null by using the API call.

 

In coding I have added null as below.
 
1.Item.Order_c = null;
 
2. by declaring Id value as null and assign the id to field.
Order__c ord = new Order__c();
ord.Id = null;
Item.Order__c = ord.Id;
 
SaveResult[] Update = SFService.update(Item);
 
But it Update all the fileds but the lookup value remains as before no change in that.
 
 
How to assign null value. In UI i can assign null value to the same look up.

 

Hi,

I need to show update for the salesforce user in the chatter for every case insert and update 
in my customer portal.     for that i worte a trigger in the case object  as 

trigger ChatterUpdate on Case (after insert, after update) {

    List<FeedItem> feedItems = new List<FeedItem>();
    List<Account> lstaccount =[select id,name,IsCustomerPortal from Account];
      //Now loop though the new/updated tasks and create the feed posts
    for (Case cas : Trigger.new) {
         for(Account acc: lstaccount){    
      
        if(acc.IsCustomerPortal == true )  {                               
            FeedItem fitem = new FeedItem();          
            fitem.ParentId = acc.id;
            fitem.LinkUrl = '/' + cas.id; //This is the url to take the user to the activity
            fitem.Title = 'View';  //This is the title that displays for the LinkUrl           
            fitem.Body = ((Trigger.isInsert)? ' : New Case has been Created ' : ' : Case has been updated')  
                      +  '\nCase with subject  : '+ cas.subject;
          
    feedItems.add(fitem);
       }
      } 
    }

    //Save the FeedItems all at once.
    if (feedItems.size() > 0) {
        Database.insert(feedItems,false); //notice the false value. This will allow some to fail if Chatter isn't available on that object
    }
} 

But i'm not getting any update feed in my chatter.

Any idea to solve the problem.     

hi,

 

I am new to Sales force and have been put under tight deadline to create a login module inside asp.net web application.

 

I need to capture text from user id and password textbox creates in asp.net page and authenticate them against our Sales force system(customer portal).

 

As i need to work in sandbox account i'm suppose to use the security token. i tried by using the wdsl file, but it ask for a security token. is there any other way to do the same for customer portal.

 

Any help or pointer would be highly appreciated.  I understand this is very basic level question but I am trying to get as much information I can get from all sources.

 

Hi,

 

How to call the OnClick event of the button in the parent page from the child page??

 

I'm opening a vf page in iframe as popup, in the child i need to keep a button to close the popup and return to paren window. Below is my code.

 

Now if i click the Cancel button popup will close. How to do the same by Clicking the button in the child page (opened in the iframe).

 

 <div id="PopUp" style="display: none">     

   <div style="float: right">

<apex:commandLink   value="Cancel"    onclick="YAHOO.force.com.hideComment();"reRender="noaction" />

 </div> 

         <div >

  <iframe height="313px" src="Childpage"  width="364px" id="commentframe" />

</div>

  </div>

 

  <script> 

   YAHOO.force.com.hideComment = function() {         

  document.getElementById("commentframe").setAttribute("src", "");         

   YAHOO.force.com.myDialogC.hide(); 

   }

</script>

 

 

 

Hi,
i'm using YAHOO.widget.Panel with iframe to show a popup window.

below is the script used to do the same.

 

YAHOO.force.com.showComment = function() {     

 

  document.getElementById("cmdframe").setAttribute("src", "");            document.getElementById("mycomment").style.display = "block";            document.getElementById("cmdframe").setAttribute("src", "https://c.ap1.visual.force.com/apex/Sample");     

YAHOO.force.com.myDialogC.show();       

 }       

 

   YAHOO.force.com.hideComment = function() {       

    document.getElementById("cmdframe").setAttribute("src", "");     

      YAHOO.force.com.myDialogC.hide();   

    }


Now how to close the iframe from the popup window?if i click a Save button in the popup window, it should do some action and the iframe should closed, without refreshing the parent window.
i want to call YAHOO.force.com.hideComment to close the panel which is in the parent window.

 

 

Or is there any way to close the i frame from the loaded child page without referishing the parent page.

Hi,

 

I'm using iframe to open a page. I need to close the iframe from the loaded window without refreshing the parent window.

How to do?

 

or is it possible to call a script from parent page from the loaded page.

As I have script for closing my frame in the parent window.

 

Note I'm using Yahoo widget script to open and close the frame.

 

 

 

Hi 

 

how to get the sting "ap1" from the "https://ap1.salesforce.com"

using the standard functions like And Find etc..

This is to create a custom field to get the value "ap1".

 

 

hi,

 

What is the use of interface and where to use it?

is there any addded advantages for using interface?

 

Hi,

 

@deprecated - New subscribers cannot see the deprecated elements, while the elements continue to function for existing subscribers an API integrations... what is the meaning for this??

 

Need detail about @deprecated, @readonly and @Future annotations , with any sample example to understand clearly..

 

Hi,

 

i used  <apex:inputTextarea richText="true" required="true" /> 

but i'm not getting any error message, if i clicked save button without any value in the text area.

but the other controle like

 <apex:inputField required="true" value="{!account.BillingCountry}"/>  workes fine.

 

 

how to set required field for rich text area??

hi,

 

Can we attach uploaded files from our local system while sending Email using the Email template as well visula force email method.

 

Hi,

 

i want to update the Lookup value as null by using the API call.

 

In coding I have added null as below.
 
1.Item.Order_c = null;
 
2. by declaring Id value as null and assign the id to field.
Order__c ord = new Order__c();
ord.Id = null;
Item.Order__c = ord.Id;
 
SaveResult[] Update = SFService.update(Item);
 
But it Update all the fileds but the lookup value remains as before no change in that.
 
 
How to assign null value. In UI i can assign null value to the same look up.

 

I have a .NET service I'm building to give me access to the data in Salesforce. I'm trying to get my update method(s) to work. Specifically, I need to know how to clear the value of a field in Salesforce. I presumed that since we're using JSON to pass the data back and forth that I can just set the field to null in the JSON string and Salesforce will clear the current value. That appears to not be the case, or I'm just plain dumb. For example if I post {"Invoice__c":"blah blah blah"} it works fine. But if I post {"Invoice__c":null,"Finish_Date__c":null,"Scheduled_Date_Time__c":"\/Date(1333526400000)\/","Walk_Date_Time__c":null} nothing happens. I don't even get an error message back. It simply doesn't work.

 

Am I doing something wrong (I obviously must be doing something wrong)? How do I correct this?

 

Thanks in advance for any help!

Hi,

I need to show update for the salesforce user in the chatter for every case insert and update 
in my customer portal.     for that i worte a trigger in the case object  as 

trigger ChatterUpdate on Case (after insert, after update) {

    List<FeedItem> feedItems = new List<FeedItem>();
    List<Account> lstaccount =[select id,name,IsCustomerPortal from Account];
      //Now loop though the new/updated tasks and create the feed posts
    for (Case cas : Trigger.new) {
         for(Account acc: lstaccount){    
      
        if(acc.IsCustomerPortal == true )  {                               
            FeedItem fitem = new FeedItem();          
            fitem.ParentId = acc.id;
            fitem.LinkUrl = '/' + cas.id; //This is the url to take the user to the activity
            fitem.Title = 'View';  //This is the title that displays for the LinkUrl           
            fitem.Body = ((Trigger.isInsert)? ' : New Case has been Created ' : ' : Case has been updated')  
                      +  '\nCase with subject  : '+ cas.subject;
          
    feedItems.add(fitem);
       }
      } 
    }

    //Save the FeedItems all at once.
    if (feedItems.size() > 0) {
        Database.insert(feedItems,false); //notice the false value. This will allow some to fail if Chatter isn't available on that object
    }
} 

But i'm not getting any update feed in my chatter.

Any idea to solve the problem.     

Hi All,

 

How to send chatter private messages from Apex code? Any example code ?

 

Thanks in Advance

How to create interface in salesforce?

Hi,

 

i used  <apex:inputTextarea richText="true" required="true" /> 

but i'm not getting any error message, if i clicked save button without any value in the text area.

but the other controle like

 <apex:inputField required="true" value="{!account.BillingCountry}"/>  workes fine.

 

 

how to set required field for rich text area??