• Raksha Narayan
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 12
    Replies
List1<account>: ({Name=Acc1, type__c=Marketing,Agree__c=no},{Name=Acc2, type__c=Sales,Agree__c=yes})
List2<account>: ({Name=Acc1, Sla__c=new},{Name=Acc2, Sla__c=pending})
I need to compare list1's name == list2's name and then concatenate/merge two lists into 1 record.
List3<account>: ({Name=Acc1, type__c=Marketing,Agree__c=no,Sla__c=new},{Name=Acc2, type__c=Sales,Agree__c=yes,Sla__c=pending})
Please let me know if it is possible.
Hi,
On Account record I have a text field that contains value as 'Click here' where 'here' is a hyperlink to www.google.com. On querying the field using SOQL, I am getting the value as 'Click <a href="www.google.com"> here</a>'
But I want to get the value as 'Click here' instead of href. Is it possible? Please suggest if it can be achieved by any other method.
How to use merge fields in messaging template? I am getting blank value when I send a text to my phone through messaging channel.
Also, can we hyperlink a text in messaging template? 
Please suggest
I have a list of strings displayed as a dropdown. Consider the below code where TypePicklist contains the values: Normal, High and Low. I want to change the color of the text "High" dynamically. Can someone help me on this?
<lightning:select label="Type">
    <aura:iteration items="{!v.TypePicklist}" var="val">
        <option value="{!val}"> {!val}</option>
    </aura:iteration>
</lightning:select>
Is it possible to pass language on Schema.DescribeFieldResult so that I can get the field labels translated in multiple languages?
Account is a parent to Object B and Object C. Object B and Object C does not have any relationship. From Object B I want to find Object C's fields(like name etc.,) using Account in a single SOQL query. Can this be achieved?
I have my list<Sobject> and i have converted it to map<string,object> using getPopulatedFieldsAsMap() and the output from the debug logs is as follows:mymap:
{Account=Account:{Name=Test Account, Parent__c=false, Region__c='India', Zone__c=A-CH, Id=0010c00001teI2IQQQ}, AccountId=0010c00001teI2IZXE, Id=01M2f000001CZkaAQW}. 
Is it possible to convert mymap.value to another map so that Name is key and Test Account is value, Parent__c is key and false is its value and so on?
I have a dynamic query which contains the following query:
SELECT Id,Name,AccountId,Account.Name,StageName from opportunity id='XXXXXXXXXXXXXXX'
The outcome of the dynamic query is stored in a list<sobject>as below:
queryresult :(Opportunity:{Id=0060c00001USHd3AAH, Name=Test1, AccountId=0010c000025aqcnAAA, StageName=win}, Opportunity:{Id=006a000001ObaQkAAJ, Name="Test2, AccountId=001a000001OsvEGAAZ, StageName=win})
 
Queryresult is a list<sobject> and it is holding 2 records. But the queryresult is not storing Account.Name field which is a lookup field(except id).
I need the lookup field to be stored somewhere as I need them for some comparison purpose.
Could you please tell me how it can be done?
 
I have a string in apex controller stored as follows: String qtr={"Forecast_Category__c":["Unqualified","Not addressable"],"StageName":["1. Understand Customer","2. Discover Needs"]}. 
is it possible to store the following in the below format?
{Forecast_Category__c:[Unqualified,Not addressable] StageName:[1. Understand Customer,2. Discover Needs]}. 
I have a list<sobject> called SobjList storing the result as follows:
 SobjList=(Case:{Id=5002f0000043zxWAAQ, Subject=New case, CaseNumber=00678068, Category__c=Billing}, Event:{Id=00U2f0000018Ly0EAE, Subject=Test event, Type=Email, Status__c=Completed}.
The list<sobject> returns the values from Case and Event object.
But i want to store the field names and its values separately for both case and event in the form of map.
for example map1 should contain key as id, subject,casenumber and value should be new case, 00678068,Billing.
Is it possible?
I have a map<string,list<string>> storing list of objects and its fields. fir example: {{opportunity= name,stageName},{account=name,city__c},{case=name,casenumber}}and so on.. From the list<string> i want to find out the datatype of each field. Is that possible?
I tried iterating on the map value as follows:
for(List<String> m: mapfil.values()){      
            Schema.DisplayType fielddataType = m.getDescribe().getType();        }
But it throws error message saying:  "Method does not exist or incorrect signature: void getDescribe() from the type List<String>".
Please help
I have a map, map<string,list<sobject>> mapdata= new map<string,list<sobject>>(); storing the data. the list<sobject> is returning values in JSON format. How to deserialize it?
 
I have created a LWC in order to print the sobject data in a table. for that I have created a map<String,list<SObject>>. From the debug logs, i found that the map holds the data in the below format: 
mymap{Case=(Case:{Id=5002f0000043zxWAAQ, ContactId=0030c00002kebMSAAY, CaseNumber=00678068}), Event=(Event:{Id=00U2f0000018Ly0EAE, WhoId=0030c00002kebMSAAY, Subject=Test event, Type=Email})}.
Now i need to iterate over the List<Sobject> value to print the values in a table as below.
for case:
 
idcontactidcase number
5002f0000043zxWAAQ0030c00002kebMSAAY678068
for event:
idsubjecttype
00U2f0000018Ly0EAETest eventEmail
The row and column should be printed in the table dynamically by picking the data from the list<sobject> (no hardcoding of the values in datatable or in html).
Please let me know how this can be achieved
On community page I have added a logo and I need to increase the size of it. I tried editing the CSS but nothing works. Please help.
I have a code snippet in which on click of a custom link, a VF page opens up and it displays the signature of the record owner. The signature is saved as a zip file in static resource.
uniqueid__c is the id for each of the record owner. The signature in the static resource and the name of the images are same as that of the uniqueid. 
For example: If the uniqueid of a record owner is 2216, then the signature image in static resource is saved as 2216.jpg
For fetching the image in my VF page i have used the below code:
<apex:image url="{!URLFOR($Resource.Signature, record.Owner_uniqueid__c+'.jpg')}" width="320" height="55"/>
My question is if uniqueid exists for a owner and if the image doesnot exist in the static resource zip file, then how can a default image be displayed on the VF page?
Please provide inputs for the same.
 
Hi, I have a javascript button on which i am calling a VF page. The name of the VF page is 'MyPage'. However, on the click of the javascript button, i want the VF page in the URL be displayed as "MyFirstVFPage".
Can anyone help me on this, please?
Hi,
On Account record I have a text field that contains value as 'Click here' where 'here' is a hyperlink to www.google.com. On querying the field using SOQL, I am getting the value as 'Click <a href="www.google.com"> here</a>'
But I want to get the value as 'Click here' instead of href. Is it possible? Please suggest if it can be achieved by any other method.
Hi,
On Account record I have a text field that contains value as 'Click here' where 'here' is a hyperlink to www.google.com. On querying the field using SOQL, I am getting the value as 'Click <a href="www.google.com"> here</a>'
But I want to get the value as 'Click here' instead of href. Is it possible? Please suggest if it can be achieved by any other method.
How to use merge fields in messaging template? I am getting blank value when I send a text to my phone through messaging channel.
Also, can we hyperlink a text in messaging template? 
Please suggest
Account is a parent to Object B and Object C. Object B and Object C does not have any relationship. From Object B I want to find Object C's fields(like name etc.,) using Account in a single SOQL query. Can this be achieved?
I have a dynamic query which contains the following query:
SELECT Id,Name,AccountId,Account.Name,StageName from opportunity id='XXXXXXXXXXXXXXX'
The outcome of the dynamic query is stored in a list<sobject>as below:
queryresult :(Opportunity:{Id=0060c00001USHd3AAH, Name=Test1, AccountId=0010c000025aqcnAAA, StageName=win}, Opportunity:{Id=006a000001ObaQkAAJ, Name="Test2, AccountId=001a000001OsvEGAAZ, StageName=win})
 
Queryresult is a list<sobject> and it is holding 2 records. But the queryresult is not storing Account.Name field which is a lookup field(except id).
I need the lookup field to be stored somewhere as I need them for some comparison purpose.
Could you please tell me how it can be done?
 
I have a list<sobject> called SobjList storing the result as follows:
 SobjList=(Case:{Id=5002f0000043zxWAAQ, Subject=New case, CaseNumber=00678068, Category__c=Billing}, Event:{Id=00U2f0000018Ly0EAE, Subject=Test event, Type=Email, Status__c=Completed}.
The list<sobject> returns the values from Case and Event object.
But i want to store the field names and its values separately for both case and event in the form of map.
for example map1 should contain key as id, subject,casenumber and value should be new case, 00678068,Billing.
Is it possible?
I have a map<string,list<string>> storing list of objects and its fields. fir example: {{opportunity= name,stageName},{account=name,city__c},{case=name,casenumber}}and so on.. From the list<string> i want to find out the datatype of each field. Is that possible?
I tried iterating on the map value as follows:
for(List<String> m: mapfil.values()){      
            Schema.DisplayType fielddataType = m.getDescribe().getType();        }
But it throws error message saying:  "Method does not exist or incorrect signature: void getDescribe() from the type List<String>".
Please help
I have a map, map<string,list<sobject>> mapdata= new map<string,list<sobject>>(); storing the data. the list<sobject> is returning values in JSON format. How to deserialize it?
 
I have created a LWC in order to print the sobject data in a table. for that I have created a map<String,list<SObject>>. From the debug logs, i found that the map holds the data in the below format: 
mymap{Case=(Case:{Id=5002f0000043zxWAAQ, ContactId=0030c00002kebMSAAY, CaseNumber=00678068}), Event=(Event:{Id=00U2f0000018Ly0EAE, WhoId=0030c00002kebMSAAY, Subject=Test event, Type=Email})}.
Now i need to iterate over the List<Sobject> value to print the values in a table as below.
for case:
 
idcontactidcase number
5002f0000043zxWAAQ0030c00002kebMSAAY678068
for event:
idsubjecttype
00U2f0000018Ly0EAETest eventEmail
The row and column should be printed in the table dynamically by picking the data from the list<sobject> (no hardcoding of the values in datatable or in html).
Please let me know how this can be achieved