• smitra
  • NEWBIE
  • 35 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 39
    Questions
  • 17
    Replies
Hi All,

I am unable to deploy Recipe app after cloning from Git.
The error I am getting is below.
force-app\main\default\objects\Contact\fields\CleanStatus.field-meta.xml Could not resolve standard field's name. (138:13)
force-app\main\default\permissionsets\recipes.permissionset-meta.xml In field: field - no CustomField named Contact.CleanStatus found 
  • March 24, 2020
  • Like
  • 0
Hi I have a requirement ,When there is a update of childcase in a contact we need to track that contact record .If there is no such update for last 2 years ,we can make that contact record as inactive.Please let me know know what is the optimized way to achive it other than customization is there any way?
which tab can help debugging soql warning?
  • October 28, 2016
  • Like
  • 0
I need to create a dependent look in visualforce page.When i am selecting data from main look up field need to fetch look up data from child look up field
When huge number of data is synced from offline to online does it synced one by one/several  data at a time?
  • August 08, 2015
  • Like
  • 0
When trigger gets executed for single record is there any chance to hit the limit of Trigger execution If we consider the Trigger will be executed for several time in a day.(After insert, After update).Everytime trigger is executed a @future call is made but the trigger is designed like each time it will process only one record.



 
  • August 08, 2015
  • Like
  • 0
I Have generated a CSR .Now I am waiting for the.CRT file which will be coming from CA (Certificate Authority)

Please tell me the steps what needs to be done once After receiving the .CRT file and uploading the same in sfdc org .

Will CA also provide apublic key which we need to provide to the server side so that they can configure the same at there end 
When we provide a CSR file to CA (Certifying Authjority) generally  do we get the .crt file which needs to be uploaded?

Once we upload the .crt file what is the next step to cennt to the other side(Application server) do the Application server also needs to configure with the same crt file or there will be a seperate public key ,associated with the CA signed certificate will be present for configuration purpose
I need to establish a two way connectivity between salesforce and TIBCO .

TIBCO will provide a public key which will be hosted in salesforce org similarly from salesforce org also we will provide TIBCO a public key for CA signed certificate generated in salesforce. 

When a soap request will be sent from salesforce org to TIBCO this request will be signed by the private key and TIBCO will decrypt the request using there public key 

Please let me know how to store public key in salesforce org ?
and how do I sign with private key while sending the message.
is it possible to create custom field from vf page?
  • December 10, 2014
  • Like
  • 0
Inorder to lock child objects in a approval process what needs to be done?
  • December 08, 2014
  • Like
  • 0
Can anyone give an example of collapsible feature in salesforce
  • October 14, 2014
  • Like
  • 0
The below code is working fine 

<apex:page >

  <title>jQuery UI Sortable - Connect lists</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css" />
  <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  <script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
  <style>
  #sortable1, #sortable2 {
    border: 1px solid #eee;
    width: 142px;
    min-height: 20px;
    list-style-type: none;
    margin: 0;
    padding: 5px 0 0 0;
    float: left;
    margin-right: 10px;
  }
  #sortable1 li, #sortable2 li {
    margin: 0 5px 5px 5px;
    padding: 5px;
    font-size: 1.2em;
    width: 120px;
  }
  </style>
  <script>
  $(function() {
    $( "#sortable1, #sortable2" ).sortable({
      connectWith: ".connectedSortable"
    }).disableSelection();
  });
  </script>
<ul id="sortable1" class="connectedSortable">
  <li class="ui-state-default">Item 1</li>
  <li class="ui-state-default">Item 2</li>
  <li class="ui-state-default">Item 3</li>
  <li class="ui-state-default">Item 4</li>
  <li class="ui-state-default">Item 5</li>
</ul>

<ul id="sortable2" class="connectedSortable">
  <li class="ui-state-highlight">Item 1</li>
  <li class="ui-state-highlight">Item 2</li>
  <li class="ui-state-highlight">Item 3</li>
  <li class="ui-state-highlight">Item 4</li>
  <li class="ui-state-highlight">Item 5</li>
</ul>

</apex:page>

But Inorder to make the list dynamic I am replaceing the "<ul><li>" section with the below code

<ul id="sortable1" class="connectedSortable">
<apex:repeat value="{!fields}" var="f">
<li>
   <apex:outputText value="{!f.value}/>
</li>
</apex:repeat>
</ul>

but it is not working can some one help
  • October 13, 2014
  • Like
  • 0
Please tell me how to write the equivalnt of the below code

<ul id="sortable1" class="connectedSortable">
  <li class="ui-state-default">Item 1</li>
  <li class="ui-state-default">Item 2</li>
  <li class="ui-state-default">Item 3</li>
  <li class="ui-state-default">Item 4</li>
  <li class="ui-state-default">Item 5</li>
</ul>

I think using datalist is a possible solution

<apex:dataList value="{!fields}" var="fls" id="sortable1" styleClass="connectedSortable">
        <apex:outputText value="{!fls.key}" id="sortable1" styleClass="connectedSortable"/>
 </apex:dataList>

but I am unable to call jquery using the following code.
  • October 11, 2014
  • Like
  • 0
When I am trying to to a query in workbench selecting bulk csv.i am getting this Error .Please let me know the reason
  • September 09, 2014
  • Like
  • 0
Please help me to understand how to call rest methods from 

I want to retrive searchlayout information using rest API  call.

I sear in some guide book finally came accross the below link

https://www.salesforce.com/us/developer/docs/api_rest/
  • August 27, 2014
  • Like
  • 0
Hi All,

I have a dynamic table which displays search result based on differnt entities

common display attribute is name

please let me know how do I incorporate hyperlink with name.

<apex:pageBlockTable rendered="{!ObjectList!=null}" value="{!ObjectList}" var="rec">
                <apex:column value="{!rec.Id}" rendered="{!IF(SelectedFields.size == 0 , true, false)}"/>
                <apex:repeat value="{!SelectedFields}" var="FieldLable">
                    <apex:column value="{!rec[FieldLable]}" rendered="{!IF(FieldLable != '--None--' , true, false)}">
                    </apex:column>
                </apex:repeat>
   </apex:pageBlockTable>






  • August 25, 2014
  • Like
  • 0
Hi All,

I want retrieve Searchlayout field list for a specific object using describeLayout() method..Can anyone put a code snippent for the same
  • August 25, 2014
  • Like
  • 0
Please let me know how to display the SOQL query result in VF page in tabular form when the SOQL object type and the associated attributes are dynamic.




  • August 22, 2014
  • Like
  • 0
smitra
every example Shown here --number of attributes and name of the attributes are mentioned in the visual force page

for example:

<apex:pageblockTable value="{!conList}" var="con">
      <apex:column value="{!con.name}"/>
      <apex:column value="{!con.email}"/>
</apex:pageblockTable>

But the problem is when i want to render the search result in vf page it could be anything..its not a predetermined set of attributed that I want to display..There should be some generic holder which will keep track of the attributes that i want to display..considering my example..if it is lead {Name=Bertha Boxer, Phone=(850) 644-4200, Id=00Q9000000EJ3FDEA1, LeadSource=Web, City=Tallahassee},

Then in visula force page it should appear like

Name|Phone|Id|LeadSource|City
Bertha|(850) 644-4200|Web|Tallahassee
  • August 22, 2014
  • Like
  • 0

I have two custom objects as   master detail relationship.Inorder to retrieve related list from the master record using SOQL query and display it in visualforce page

Hi,

I get that error when I try to save this code.

trigger ExampleTrigger2 on Contact (after insert, after delete) {
    if (Trigger.isInsert) {
        Integer recordCount = Trigger.New.size();
        // Call a utility method from another class
        EmailManager.sendMail('aschor@acmeunited.com', 'Trailhead Trigger Tutorial', 
                    recordCount + ' contact(s) were inserted.');
    }
    else if (Trigger.isDelete) {
        // Process after delete
    }
}

thanks,
 

Aron

I need to establish a two way connectivity between salesforce and TIBCO .

TIBCO will provide a public key which will be hosted in salesforce org similarly from salesforce org also we will provide TIBCO a public key for CA signed certificate generated in salesforce. 

When a soap request will be sent from salesforce org to TIBCO this request will be signed by the private key and TIBCO will decrypt the request using there public key 

Please let me know how to store public key in salesforce org ?
and how do I sign with private key while sending the message.
Please tell me how to write the equivalnt of the below code

<ul id="sortable1" class="connectedSortable">
  <li class="ui-state-default">Item 1</li>
  <li class="ui-state-default">Item 2</li>
  <li class="ui-state-default">Item 3</li>
  <li class="ui-state-default">Item 4</li>
  <li class="ui-state-default">Item 5</li>
</ul>

I think using datalist is a possible solution

<apex:dataList value="{!fields}" var="fls" id="sortable1" styleClass="connectedSortable">
        <apex:outputText value="{!fls.key}" id="sortable1" styleClass="connectedSortable"/>
 </apex:dataList>

but I am unable to call jquery using the following code.
  • October 11, 2014
  • Like
  • 0
Hi All,

I have a dynamic table which displays search result based on differnt entities

common display attribute is name

please let me know how do I incorporate hyperlink with name.

<apex:pageBlockTable rendered="{!ObjectList!=null}" value="{!ObjectList}" var="rec">
                <apex:column value="{!rec.Id}" rendered="{!IF(SelectedFields.size == 0 , true, false)}"/>
                <apex:repeat value="{!SelectedFields}" var="FieldLable">
                    <apex:column value="{!rec[FieldLable]}" rendered="{!IF(FieldLable != '--None--' , true, false)}">
                    </apex:column>
                </apex:repeat>
   </apex:pageBlockTable>






  • August 25, 2014
  • Like
  • 0
Hi All,

I want retrieve Searchlayout field list for a specific object using describeLayout() method..Can anyone put a code snippent for the same
  • August 25, 2014
  • Like
  • 0
Please let me know how to display the SOQL query result in VF page in tabular form when the SOQL object type and the associated attributes are dynamic.




  • August 22, 2014
  • Like
  • 0
Hi All,

I have a SOQL query result in controller like this

(Lead:{Name=Bertha Boxer, Phone=(850) 644-4200, Id=00Q9000000EJ3FDEA1, LeadSource=Web, City=Tallahassee}, Lead:{Name=Phyllis Cotton, Phone=(703) 757-1000, Id=00Q9000000EJ3FEEA1, LeadSource=Web}, Lead:{Name=Jeff Glimpse, Phone=886-2-25474189, Id=00Q9000000EJ3FFEA1, LeadSource=Phone Inquiry}

I want to display the result in tabuler format in visual force page.

Please let me know how to display the result 
  • August 22, 2014
  • Like
  • 0
Hi All,

I want to retrieve fields from Standard or Custom Object Page Layout.Is there any standard Apex methods which will do that
  • August 19, 2014
  • Like
  • 0

Hi,

 

I have generated Apex classes for metadata.wsdl,apex.wsdl,partner.wsdl and enterprise.wsdl .Now I need to write code for metadata description casn anyone suggest me how to approach for the same.

I have two custom objects as   master detail relationship.Inorder to retrieve related list from the master record using SOQL query and display it in visualforce page

DescribeSObjectResult[] dsrArray = connection.describeSObjects(new String[] { objectToDescribe });

 

The above line is throwing the below error:

 


com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:enterprise.soap.sforce.com:permissionable' but found 'urn:enterprise.soap.sforce.com:precision'
at com.sforce.ws.bind.TypeMapper.verifyTag(TypeMapper.java:386)
at com.sforce.ws.bind.TypeMapper.verifyElement(TypeMapper.java:415)
at com.sforce.soap.enterprise.Field.loadFields(Field.java:1)
at com.sforce.soap.enterprise.Field.load(Field.java:1)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:628)
at com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:528)
at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:506)
at com.sforce.soap.enterprise.DescribeSObjectResult.loadFields(DescribeSObjectResult.java:1)
at com.sforce.soap.enterprise.DescribeSObjectResult.load(DescribeSObjectResult.java:1)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:628)
at com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:528)
at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:506)
at com.sforce.soap.enterprise.DescribeSObjectsResponse_element.loadFields(DescribeSObjectsResponse_element.java:1)
at com.sforce.soap.enterprise.DescribeSObjectsResponse_element.load(DescribeSObjectsResponse_element.java:1)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:628)
at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:504)
at com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:173)
at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:147)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:98)
at com.sforce.soap.enterprise.EnterpriseConnection.describeSObjects(EnterpriseConnection.java:1)
at com.example.samples.QuickstartApiSample.describeSObjectsSample(QuickstartApiSample.java:171)
at com.example.samples.QuickstartApiSample.run(QuickstartApiSample.java:53)
at com.example.samples.QuickstartApiSample.main(QuickstartApiSample.java:43)

 

 

hi,

 

 i m trying to create a custom field in to standard object  but it is creating in to standard fields  not in custom field.

 and second thing i m not able to create field type  exept Text and AutoNumber.   this is the code that i m using.

 

 

// create a new custom object
                String objectName = "Test4";
                String displayName = "Test4 Object";
                 
                CustomObject co = new CustomObject();
                co.setFullName(objectName+"__c");
                co.setDeploymentStatus(DeploymentStatus.Deployed);
                co.setDescription("Created by gaurav using the Metadata API");
                co.setLabel(displayName);
                co.setPluralLabel(displayName+"s");
                co.setSharingModel(SharingModel.ReadWrite);
                co.setEnableActivities(true);
                 
                // create the text id field
                String custom ="Test";
                CustomField field = new CustomField();
                field.setType(FieldType.Text);
                field.setDescription("The Gaurav");
                field.setLabel(displayName);
                field.setFullName(objectName+"__c");
                // add the field to the custom object
                co.setNameField(field);

 try {
                  // submit the custom object to salesforce
                  AsyncResult[] ars = metadataConnection.create(new CustomObject[] { co });
                  if (ars == null) {
                      System.out.println("The object was not created successfully");
                      return;
                  }
                   
                  String createdObjectId = ars[0].getId();
                  String[] ids = new String[] {createdObjectId};
                  boolean done = false;
                  long waitTimeMilliSecs = 1000;
                  AsyncResult[] arsStatus = null;
          /**
               * After the create() call completes, we must poll the results
               * of the checkStatus() call until it indicates that the create
               * operation is completed.
                   */
                  while (!done) {
                      arsStatus = metadataConnection.checkStatus(ids);
                      if (arsStatus == null) {
                          System.out.println("The object status cannot be retrieved");
                          return;
                      }
                      done = arsStatus[0].isDone();
                      if (arsStatus[0].getStatusCode() != null )  {
                          System.out.println("Error status code: "+arsStatus[0].getStatusCode());
                          System.out.println("Error message: "+arsStatus[0].getMessage());
                      }
                      Thread.sleep(waitTimeMilliSecs);
                      // double the wait time for the next iteration
                      waitTimeMilliSecs *= 2;
                      System.out.println("The object state is "+arsStatus[0].getState());
                  }
                   
              System.out.println("The ID for the created object is "+arsStatus[0].getId());
                }
                catch (Exception ex) {
                    System.out.println("\nFailed to create object, error message was: \n" +ex.getMessage());
                }
    
    }

 

Hi,

 

Once a custom object has been created is it possible to still add custom fields to it? I don't mind if data is lost...

 

At the moment if I click on 'Edit' next to the custom object it only gives me a very limited set of options, none of which allow me to add/change fields.

 

Thanks

 

Matt