• Desai
  • NEWBIE
  • 65 Points
  • Member since 2016

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

We are using field service and wanted to know if OOTB the actual travel time of an Resource from one Service appointment to other is calculated.

Regards,
Desai
  • June 24, 2021
  • Like
  • 0
Hi,

We are not able to see the serivce appointments on map in the dispatcher console . What could be the reason ?

Regards,
Desai
  • December 12, 2019
  • Like
  • 0
Hi ,

We need to create a report to track all the changes made on a case like, post, status change , emails etc. We created a custom report type where primary object was case and related to Case Feed object.

We then created a new report with above report type, but it dosen't show the email related changes. Why ?

Regards,
Desai
  • September 19, 2019
  • Like
  • 0
Hi,

How do we add new values under To field of the feed post ?
User-added image

Regards,
Pallavi
  • September 13, 2019
  • Like
  • 0
Hi,

We have a community and we need to show Account based on the contact seleted on Case creation.

We tried applying lookup filters on Account field but not abel to get the exact filter.

Any suggestions please ??

Regards,
Desai
  • September 09, 2019
  • Like
  • 0
Hi,

If an incoming mails subject matches with existing subject on Case, then link the new incoming mail to the existing case.

For this, we used Process builder which will pass the incomng mails details to the flow. This flow will query on case using the subject and when found update  the ParentId on EmailMessage.

But we are not able to update ParentId. Anyother way of  updating this field ?

Regards,
Desai
  • August 30, 2019
  • Like
  • 0
Hi,

Community users are not abel to reply/Reply all/Forward mails . There are getting the below error,
User-added image
profile used here is Customer Commnity User .
Any suggestions on how can we get rid of this as this is urgent.

Regads,
Desai
  • August 28, 2019
  • Like
  • 0
When a milsestone is violated, it appears in the Case's chatter feed. How do we diable it  for community users?
  • We tried unchecking the Enable Milestone Feed Items under Entitlement Settings , but didnt work.
  • Tried using feed filters, but did not work
  • Tried unchecking the Activity related to all relared objects under Feed Tracking, but did not work.
Regards,
Desai
  • August 27, 2019
  • Like
  • 0
Hi,

We have two profiles, System Admin and Customer Comunity. When system admin logins into community and creates a case, flag "Assign using Active assignment rule" is visible but when a community user logins into community and creates a case , flag "Assign using Active assignment rule" is not visible.

What could be the issue as we are using customer service template  and not napilli for commuity.

Regards,
Desai
  • August 12, 2019
  • Like
  • 0
Hi ,

We have two  independent objects ,
Object1 : Account  Data is stored from external system. It contains both parent and child accounts . Child records in Object1 will have external Id of parent.
Account : Data from Object1 should be upserted in Account.

So , in execute method, we are first getitng the parent Accounts and storing it in map and then child accounts in another map.

But to associate the child account to parent we need either SF Id or External id. How do we use external Id as there is no relationship b/w Account and Object1.

We went throught these links but there is relationship b/w two objects.
https://salesforce.stackexchange.com/questions/220184/updating-a-records-using-external-id-in-apex
https://www.sfdcstuff.com/2017/04/using-databaseupsert-with-external-id.html
https://wdcigroup.net/salesforce-tip-creating-salesforce-parent-record-and-child-record-with-reference-key-cascading-insert/

Regards,
Desai


 
  • June 26, 2019
  • Like
  • 0
Hi,
We have two objects, one cusotm and and one OOTB and both are not related but they have one field which will have same values.

How can we build a SOQL query for this ? Is this even possible ?

Reards,
Desai
  • June 24, 2019
  • Like
  • 0
Hi,

We need to make the case record readonly when milestones are violated. We though of using Milestone status field in validaiton rule but that field is not availble as it a OOTB special field.

So how do we do this req ?

 
  • June 19, 2019
  • Like
  • 0
Hi,

We need to change the default landing page on community from Home to Case List view . How to do we do it ?


Regards,
Desai
  • June 18, 2019
  • Like
  • 0
Hi,
We have to load the products from source system to SF. But the file shared from source system doesnt have the product name which is the only unique field. 
SO how to upsert the data using data loader ?

Regards,
Desai
  • June 13, 2019
  • Like
  • 0
Hi,
we need  a cusotm button on Community which should create a case. I tried creating a quick action on case but thats not visible on community.

Regards,
Desai
  • May 30, 2019
  • Like
  • 0
Hi,

we have commuity enabled in our org. We have Customer Community and Customer Community Plus profiles.

Now we  need allow extrenal users to self register. How do we do it ?
Went throuhg this link ,
https://help.salesforce.com/articleView?id=networks_customize_selfreg_page.htm&type=5

But at one point they mention about Enabling the Accounts as partner ? And the button Manage External Account button is not available on Account page layout.

Can somebody please help me here ?

Regards,
Desai
  • May 30, 2019
  • Like
  • 0
Hi, 

On Account Object we have 4 field sets. In apex, i need to query all the fieldsets and get the value of each field and dispay on VF page.

In the below syntax, we have to mention the FS name which i dont want.
List<Schema.FieldSetMember> fields = Schema.SObjectType.Account.fieldSets.getMap().get('field_set_name').getFields();

Regards,
Desai
  • May 29, 2019
  • Like
  • 0
Hi,

We need to calculate the time taken to wrok on a case from Status = Open to Status  = Resolved.

If the Case status is On Hold then dont cosider that time.
Can we do this using formula ?

Regards,
Desai
  • May 27, 2019
  • Like
  • 0
Hi,

We have created some cusotm fields  on case object and need to set the histroy track on these fields.
How do we do it ?

Regards,
Desai
  • May 20, 2019
  • Like
  • 0
Hi , 
We have 4 cusomt objects:
Process, Zone, Asset, Hardware
On work order page, we need lightning component to display the data in tree structure, so we used Lightning:treeGrid.
But the problem here is , we need to display only those hardware records where the Work Order is stamped (only Hardware has the Work order satmped), in this  way
Process001
     Zone001
       Asset001
           HW001    WO001

To acheive this we need to get the data from bottom to top and then dispay the data on UI from top to bottom. 
Any suggestions plz...its urgent.

Regards,
Desai
  • May 08, 2019
  • Like
  • 0
Hi,

Is there a way to embed the OBIEE cloud app in sfdc app ?

Regards,
Pallavi
  • May 17, 2017
  • Like
  • 1
Hi,

We are getting the error "System.CalloutException: IO Exception: DER input, Integer tag error" we we try to integrate with one of the external system from SFDC.

We went through below blog and followed the exact steps but still we are gettign the above error.
https://developer.salesforce.com/forums/?id=906F00000009BAyIAM

Thanks,
Pallavi
  • August 09, 2016
  • Like
  • 1
Hi,

Community users are not abel to reply/Reply all/Forward mails . There are getting the below error,
User-added image
profile used here is Customer Commnity User .
Any suggestions on how can we get rid of this as this is urgent.

Regads,
Desai
  • August 28, 2019
  • Like
  • 0
When a milsestone is violated, it appears in the Case's chatter feed. How do we diable it  for community users?
  • We tried unchecking the Enable Milestone Feed Items under Entitlement Settings , but didnt work.
  • Tried using feed filters, but did not work
  • Tried unchecking the Activity related to all relared objects under Feed Tracking, but did not work.
Regards,
Desai
  • August 27, 2019
  • Like
  • 0
Hi,

We have two profiles, System Admin and Customer Comunity. When system admin logins into community and creates a case, flag "Assign using Active assignment rule" is visible but when a community user logins into community and creates a case , flag "Assign using Active assignment rule" is not visible.

What could be the issue as we are using customer service template  and not napilli for commuity.

Regards,
Desai
  • August 12, 2019
  • Like
  • 0
Hi,
We have two objects, one cusotm and and one OOTB and both are not related but they have one field which will have same values.

How can we build a SOQL query for this ? Is this even possible ?

Reards,
Desai
  • June 24, 2019
  • Like
  • 0
Hi, 

On Account Object we have 4 field sets. In apex, i need to query all the fieldsets and get the value of each field and dispay on VF page.

In the below syntax, we have to mention the FS name which i dont want.
List<Schema.FieldSetMember> fields = Schema.SObjectType.Account.fieldSets.getMap().get('field_set_name').getFields();

Regards,
Desai
  • May 29, 2019
  • Like
  • 0
Hi, 
 we have a lighitng  component  using lighitnign:treegrid to display the data in hierarchy. In the components controller, we storing the details of the selected records.

Now we need to pass this set of records to another lightning component . How do we do it.

Regards,
Desai
  • April 29, 2019
  • Like
  • 0
Hi,

We have built a lighting com to display the Contact and Opportunity data in hierarchy structure. We are able to pass the current records Id but how do we pass its related fields to apex. Like we need to pass the account Id from contact  to apex controller.

Regards,
Desai
  • April 26, 2019
  • Like
  • 0
Hi,

we have a requirement to display the address in a lightning page. To acheive this , when we query on apex controller we are gettign this error.
CODE:
public class AddressController 
{
    @AuraEnabled
    public static List<Address> getAddData{
       List<Address> getAddData = [SELECT Id FROM Address ];
        return getAddData;
    }

}

ERROR:
1) AuraEnabled methods do not support return type of List<System.Address>
2) Illegal assignment from List<Address> to List<System.Address>


Regards,
Desai
  • April 15, 2019
  • Like
  • 0
Hi ,

We have a requirement to Display Accounts, Contacts( of account), Opportunities(of contact) to be displayed in a tree hierarchy using lightning component.
 I am not able to customize the code from below link https://developer.salesforce.com/docs/component-library/bundle/lightning:treeGrid/documentation 
This does show account and its contacts in tree hierarchy but
1) it doesnt show up the field names of contact
2) how to display contacts opportunity under each contact.

Regards,
Desai
  • April 12, 2019
  • Like
  • 0
Hi , 

We wanted this field Business Hours Age on Case page layout. But According to this article https://help.salesforce.com/articleView?id=000214416&type=1&language=en_US  we need to request SF to activate this feature.

Is it required for developer edition as well ? And can we using this filed in vlaidaiton rules ?

Regards,
Desai
  • April 09, 2019
  • Like
  • 0

Hi ,

We have build a VF page whihc uses field sets to dispaly the data, now it should be converted to lightning. How to do we do it as i am new to lightning.

Regards,
Desai

  • March 29, 2019
  • Like
  • 0
Hi,

How do we update a cusotm text field on Activity with its related contacts first name ?

Regards,
Pallavi
  • March 19, 2019
  • Like
  • 0
Hi,
We are able to parse the below XML using DOM class but not able to pass it back to VF if there are multiple childElemets. For example,
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
    <PostInquiryResponse xmlns="http://api.giact.com/verificationservices/v5">
        <PostInquiryResult>
        <OfacListPotentialMatches>
         <OfacListData>
            <Website>www.sniperafrica.com</Website>
            <TaxIdNumber>Tax ID No. 9113562152</TaxIdNumber>
            </OfacListData>
            </OfacListPotentialMatches>
        <OfacListPotentialMatches>
         <OfacListData>
            <Website>www.evergeGroup.com</Website>
            <TaxIdNumber>Tax ID No. 91135</TaxIdNumber>
        </OfacListData>
        </OfacListPotentialMatches>
        </PostInquiryResult>
    </PostInquiryResponse>
</soap:Body>
</soap:Envelope>
we are able to print the child elements but how to pass it as list to VF page so that it can be used with repeat 

Thanks
  • August 14, 2018
  • Like
  • 0
Hello,

I get a response XML.

How can i build a VF page to display the data ?

Thanks
  • October 15, 2015
  • Like
  • 0
XmlParseVFPage:

<apex:page Controller="Xmlparsar">

<apex:form >
        <apex:pageBlock >
            <apex:pageBlockButtons location="bottom">
                <apex:commandButton value="Parse Xml" action="{!Parsexml}" />   
                <apex:commandButton value="ParseXML File" action="{!Parsexmlfile}"/>
            </apex:pageBlockButtons>
            <apex:inputTextArea value="{!xmlstring}" style="width:336px;height:260px;"/> &nbsp;&nbsp;
            <apex:inputTextArea value="{!outxmlstring}" style="width:336px;height:260px;" id="response"/><br/>

            <apex:outputLabel value="Select Xml File" for="file"/>
            <apex:inputFile fileName="{!fileName}" value="{!body}"/>
        </apex:pageBlock>
    </apex:form>
   
</apex:page>

Apex Class

public  class Xmlparsar
{
    //xml string
    public String xmlstring{get;set;}
   
    //display xml string
    public String outxmlstring{get;set;}
   
    //rootelement
    public String rootElement{get;set;}
   
    //
    public String filename{get;set;}
   
    public blob body{get;set;}
      
    //constructor
    public Xmlparsar()
    {
    
    }
   
    
//Parsing xml what you entered in the left text area
    public pagereference Parsexml()
    {
       DOM.Document xmlDOC = new DOM.Document();
       xmlDOC.load(xmlstring);
       DOM.XMLNode rootElement = xmlDOC.getRootElement();
       outxmlstring=String.valueof(xmlDOC.getRootElement().getName());
       for(DOM.XMLNode xmlnodeobj:xmlDOC.getRootElement().getChildElements())
       //.getChildren())
       {        
         
         
          loadChilds(xmlnodeobj);         
       }      
       return null;
    }
   
    //loading the child elements
    public void loadChilds(DOM.XMLNode xmlnode)
    {
        for(Dom.XMLNode child : xmlnode.getChildElements())
        {
          if(child.getText()!= null)
          {
          outxmlstring+='\n'+child.getName()+': '+child.getText();
       
          }
          loadChilds(child);       
        }
    }
   
   
//This is for parsing xml file what you selected
  public pagereference Parsexmlfile()
  {
       DOM.Document xmlDOC = new DOM.Document();
       xmlstring=body.tostring();         
       xmlDOC.load(xmlstring);
       DOM.XMLNode rootElement = xmlDOC.getRootElement();
       outxmlstring=String.valueof(xmlDOC.getRootElement().getName());//gives you root element Name
       for(DOM.XMLNode xmlnodeobj:xmlDOC.getRootElement().getChildElements())
       {        
                  
          loadChilds(xmlnodeobj); 
       }      
      return null;
    }
}

Apex Test Class

@isTest
public class XmlParsarTest
{
    
    //test for parse xml only
    @isTest static void Parsexml()
    {      
        Xmlparsar xmlpar=new Xmlparsar();
        PageReference pageRef = Page.XmlParseVFPage;
        Test.setCurrentPage(pageRef);
        xmlpar.xmlstring='<?xml version="1.0"?><catalog><book id="bk101"><author>Gambardella, Matthew</author></book></catalog>';
        xmlpar.Parsexml();
        System.assertNotEquals(null, xmlpar.outxmlstring);
    }
   
    @isTest static void ParsexmlFile()
    {
        Xmlparsar xmlpar=new Xmlparsar();
        PageReference pageRef = Page.XmlParseVFPage;
        Test.setCurrentPage(pageRef);
        List<StaticResource> resourceList=[SELECT body FROM StaticResource WHERE Name = :'testxmlfile' limit 1];
        xmlpar.body=resourceList[0].body;
        System.debug('xmlpar.body'+xmlpar.body);
        System.debug('xmlpar.xmlstring'+xmlpar.xmlstring);
        xmlpar.Parsexmlfile();
        System.assertNotEquals(null, xmlpar.outxmlstring);
    }
   
  
}